diff options
author | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-06-17 22:15:56 +0200 |
---|---|---|
committer | matthiasgrimm <matthiasgrimm@users.sourceforge.net> | 2005-06-17 22:15:56 +0200 |
commit | d0c4dcfdc151ce2d6d74498db7d87fe2ebf0d711 (patch) | |
tree | 11f5fc3a864c5d6ace011d4fe88ee9a7f7bbd923 /inc | |
parent | 5451511ac2842399c326c8b0f7fc547f18522abb (diff) | |
download | rpg-d0c4dcfdc151ce2d6d74498db7d87fe2ebf0d711.tar.gz rpg-d0c4dcfdc151ce2d6d74498db7d87fe2ebf0d711.tar.bz2 |
option merge of refcheck and refcount
The options refcheck and refcount were merged to refcheck. This reduces
configuration options and make the function more robust.
darcs-hash:20050617201556-7ef76-47841e0b8713a26b6fb7eacffa9e89752f65ae50.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/search.php | 4 |
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'])); |