diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-09-28 16:38:14 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-09-28 16:42:43 +0200 |
commit | de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c (patch) | |
tree | 743400a9afec72602b4ec99a21ff42ed7a402287 /inc/search.php | |
parent | 07d7dfcf87238d920900ca468d9399d80d8b7247 (diff) | |
download | rpg-de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c.tar.gz rpg-de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c.tar.bz2 |
Small fixes / cleanup
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php index ea8897662..8273eef8c 100644 --- a/inc/search.php +++ b/inc/search.php @@ -322,6 +322,7 @@ function search_backlinks(&$data,$base,$file,$type,$lvl,$opts){ $instructions = p_cached_instructions($base.$file,true); if(is_null($instructions)) return false; + global $conf; //check all links for match foreach($instructions as $ins){ if($ins[0] == 'internallink' || ($conf['camelcase'] && $ins[0] == 'camelcaselink') ){ @@ -595,7 +596,7 @@ function search_universal(&$data,$base,$file,$type,$lvl,$opts){ if(!$opts['listfiles']) return $return; if(!$opts['skipacl'] && $item['perm'] < AUTH_READ) return $return; if($opts['pagesonly'] && (substr($file,-4) != '.txt')) return $return; - if(!$conf['showhidden'] && isHiddenPage($id)) return $return; + if(!$opts['showhidden'] && isHiddenPage($item['id'])) return $return; if($opts['filematch'] && !preg_match('/'.$opts['filematch'].'/',$file)) return $return; if($opts['idmatch'] && !preg_match('/'.$opts['idmatch'].'/',$item['id'])) return $return; } |