From: <sy...@us...> - 2011-06-30 12:33:59
|
Revision: 35143 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=35143&view=rev Author: sylvieg Date: 2011-06-30 12:33:51 +0000 (Thu, 30 Jun 2011) Log Message: ----------- [ENH]search: accept maxRecords in url for debug Modified Paths: -------------- branches/7.x/tiki-searchindex.php Modified: branches/7.x/tiki-searchindex.php =================================================================== --- branches/7.x/tiki-searchindex.php 2011-06-30 11:38:27 UTC (rev 35142) +++ branches/7.x/tiki-searchindex.php 2011-06-30 12:33:51 UTC (rev 35143) @@ -43,7 +43,7 @@ $query = $unifiedsearchlib->buildQuery($filter); - $query->setRange(isset($_REQUEST['offset']) ? $_REQUEST['offset'] : 0, $prefs['maxRecords']); + $query->setRange(isset($_REQUEST['offset']) ? $_REQUEST['offset'] : 0, empty($_REQUEST['maxRecords'])?$prefs['maxRecords']: $_REQUEST['maxRecords']); $results = $query->search($unifiedsearchlib->getIndex()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |