diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-05-11 22:02:35 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-05-11 22:02:35 +0200 |
commit | d1c7b6ec50c31bdac17533c13e908fb41c1e1990 (patch) | |
tree | dd8c9de9482bdf5f303afba582109dcdf8e51ccf /inc/search.php | |
parent | b54f94e00cd0f1a818dd79fb2ce3bca7117e243e (diff) | |
download | rpg-d1c7b6ec50c31bdac17533c13e908fb41c1e1990.tar.gz rpg-d1c7b6ec50c31bdac17533c13e908fb41c1e1990.tar.bz2 |
add sneaky_index option
This disables the last patch and adds an option to enable it on demand.
darcs-hash:20070511200235-7ad00-a3ea769bc4965710b7fd261d31e2c9f8a3d9d7f5.gz
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/search.php b/inc/search.php index 3b225ddec..eac70cd05 100644 --- a/inc/search.php +++ b/inc/search.php @@ -142,6 +142,7 @@ function search_qsearch(&$data,$base,$file,$type,$lvl,$opts){ * @author Andreas Gohr <andi@splitbrain.org> */ function search_index(&$data,$base,$file,$type,$lvl,$opts){ + global $conf; $return = true; $item = array(); @@ -156,8 +157,8 @@ function search_index(&$data,$base,$file,$type,$lvl,$opts){ $id = pathID($file); - if($type=='d' && auth_quickaclcheck($id.':') < AUTH_READ){ - return false; + if($type=='d' && $conf['sneaky_index'] && auth_quickaclcheck($id.':') < AUTH_READ){ + return false; } //check hidden |