From d0c4dcfdc151ce2d6d74498db7d87fe2ebf0d711 Mon Sep 17 00:00:00 2001 From: matthiasgrimm Date: Fri, 17 Jun 2005 22:15:56 +0200 Subject: 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 --- inc/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') 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'])); -- cgit v1.2.3