From a8900dc9bb90521364ddb83a687175277ff5fa58 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 7 Aug 2009 11:46:07 +0200 Subject: Show media namespaces in ACL manager Ignore-this: b46799f7d65081eaa364ecaab8a2c7f9 Namespaces that only exist within the media directory are now merged with the page namespaces in tree explorer of the namespace manager darcs-hash:20090807094607-7ad00-3ce30cffc528e7e20a4b19d8f30d1f3725806162.gz --- lib/plugins/acl/ajax.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/plugins/acl/ajax.php') diff --git a/lib/plugins/acl/ajax.php b/lib/plugins/acl/ajax.php index daed03306..54eaa8dc7 100644 --- a/lib/plugins/acl/ajax.php +++ b/lib/plugins/acl/ajax.php @@ -45,8 +45,7 @@ if($ajax == 'info'){ $lvl = count(explode(':',$ns)); $ns = utf8_encodeFN(str_replace(':','/',$ns)); - $data = array(); - search($data,$conf['datadir'],'search_index',array('ns' => $ns),$ns); + $data = $acl->_get_tree($ns,$ns); foreach($data as $item){ $item['level'] = $lvl+1; -- cgit v1.2.3