diff options
author | Adrian Lang <mail@adrianlang.de> | 2011-07-11 22:17:27 +0200 |
---|---|---|
committer | Adrian Lang <mail@adrianlang.de> | 2011-07-11 23:03:28 +0200 |
commit | a1dee2b998bc3dc8436bb076435d405ec412e054 (patch) | |
tree | d1c7609b4085ac6f2be349b1a478f939eea8771a /lib/plugins/acl/admin.php | |
parent | 2d57e114e1b33b0965a48b2838ec5dd38888c3b6 (diff) | |
download | rpg-a1dee2b998bc3dc8436bb076435d405ec412e054.tar.gz rpg-a1dee2b998bc3dc8436bb076435d405ec412e054.tar.bz2 |
Fix some bugs and glitches in (mediamanager) tree
* Fix selector in subtree loading callback
* Remove HTML inconsistencies between AJAX and plain PHP lists
* Unify icon and CSS class switching in dw_tree and dw_mediamanager
Diffstat (limited to 'lib/plugins/acl/admin.php')
-rw-r--r-- | lib/plugins/acl/admin.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/plugins/acl/admin.php b/lib/plugins/acl/admin.php index ea4184ca3..7c12b3374 100644 --- a/lib/plugins/acl/admin.php +++ b/lib/plugins/acl/admin.php @@ -253,19 +253,12 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin { $data = $this->_get_tree($ns); // wrap a list with the root level around the other namespaces - $item = array( 'level' => 0, 'id' => '*', 'type' => 'd', - 'open' =>'true', 'label' => '['.$lang['mediaroot'].']'); + array_unshift($data, array( 'level' => 0, 'id' => '*', 'type' => 'd', + 'open' =>'true', 'label' => '['.$lang['mediaroot'].']')); - echo '<ul class="acltree">'; - echo $this->_html_li_acl($item); - echo '<div class="li">'; - echo $this->_html_list_acl($item); - echo '</div>'; echo html_buildlist($data,'acl', array($this,'_html_list_acl'), array($this,'_html_li_acl')); - echo '</li>'; - echo '</ul>'; } |