diff options
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; } |