summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2011-09-04 15:32:41 +0200
committerAdrian Lang <mail@adrianlang.de>2011-09-04 15:33:26 +0200
commit1ffc211ddb46bfabe649bbacd1e36bc8e035afa3 (patch)
treedb38e999923c38efe5dab72c013ce0c985d9d4b5 /inc/search.php
parentba6c070edd92ca0fc8a6ee85d51769d64a19ee7c (diff)
downloadrpg-1ffc211ddb46bfabe649bbacd1e36bc8e035afa3.tar.gz
rpg-1ffc211ddb46bfabe649bbacd1e36bc8e035afa3.tar.bz2
Revert tmp commits
This reverts commit ba6c070edd92ca0fc8a6ee85d51769d64a19ee7c. This reverts commit 923510088dda99cb2790b15308593e47369d4f01.
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/inc/search.php b/inc/search.php
index 5ba28a1fc..bc7c35482 100644
--- a/inc/search.php
+++ b/inc/search.php
@@ -596,25 +596,6 @@ function search_universal(&$data,$base,$file,$type,$lvl,$opts){
if($opts['firsthead']) $item['title'] = p_get_first_heading($item['id'],METADATA_DONT_RENDER);
}
- if($type == 'd' && !$opts['skipacl'] && $opts['sneakyacl'] && $item['perm'] < AUTH_READ) {
- if ($opts['sneakyacl'] === 2) {
- // Perform shy sneaking, i. e. just show the ns if it contains
- // something accessible
- $old_data_count = count($data);
- search($data,$base,'search_universal',$opts,$file,$lvl+1);
- if (count($data) > $old_data_count) {
- // Contains something visible
- array_splice($data, $old_data_count, $return ? 0 : count($data),
- array($item));
- } else {
- // Contains nothing visible, so hide
- $data = array_slice($data, 0, $old_data_count);
- }
- }
- // Stop recursing in any case since we did it ourself
- return false;
- }
-
// finally add the item
$data[] = $item;
return $return;