summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/search.php b/inc/search.php
index 949ecc878..8216d98e5 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -356,9 +356,9 @@ function search_reference(&$data,$base,$file,$type,$lvl,$opts){
//only search txt files
if(!preg_match('#\.txt$#',$file)) return true;
- //we finish after five references found. The return value
+ //we finish after 'n' references found. The return value
//'false' will skip subdirectories to speed search up.
- if(count($data) >= $conf['refcount']) return false;
+ if(count($data) >= $conf['refcheck']) return false;
$reg = '\{\{ *\:?'.$opts['query'].' *(\|.*)?\}\}';
search_regex($data,$base,$file,$reg,array($opts['query']));