Empty commit

This commit is contained in:
Git 2011-08-23 08:00:06 +00:00
parent 9c7079266d
commit b56f584f50
2 changed files with 7 additions and 1 deletions

View File

@ -136,7 +136,7 @@ function search($Query='', $CachePrefix='', $CacheLength=0, $ReturnData=array(),
} }
function limit($Start, $Length, $MaxMatches=SPHINX_MATCHES_START) { function limit($Start, $Length, $MaxMatches=SPHINX_MATCHES_START) {
if(check_perms('site_search_many')) { if(check_perms('site_search_many') && empty($_GET['limit_matches'])) {
$MaxMatches = 500000; $MaxMatches = 500000;
} }
$this->SetLimits((int)$Start, (int)$Length, $MaxMatches, 0); $this->SetLimits((int)$Start, (int)$Length, $MaxMatches, 0);

View File

@ -538,6 +538,12 @@ function header_link($SortKey,$DefaultWay="desc") {
</select> </select>
</td> </td>
</tr> </tr>
<? if(check_perms('site_search_many')) { ?>
<tr>
<td class="label">Limited search results:</td>
<td><input type="checkbox" value="1" name="limit_matches" <?selected('limit_matches',1,'checked')?> /></td>
</tr>
<? } ?>
</table> </table>
<table class="cat_list"> <table class="cat_list">
<? <?