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) {
if(check_perms('site_search_many')) {
if(check_perms('site_search_many') && empty($_GET['limit_matches'])) {
$MaxMatches = 500000;
}
$this->SetLimits((int)$Start, (int)$Length, $MaxMatches, 0);

View File

@ -538,6 +538,12 @@ function header_link($SortKey,$DefaultWay="desc") {
</select>
</td>
</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 class="cat_list">
<?