summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
authorKate Arzamastseva <pshns@ukr.net>2011-07-15 00:16:07 +0300
committerKate Arzamastseva <pshns@ukr.net>2011-07-15 00:16:07 +0300
commit3dd4a911f6492d9dce2b58bcd44c917489f50301 (patch)
tree3bae66359cf2957253740e1dac6fae74b0e3cd15 /lib/plugins
parentc439558b00bf5429e11461bc999b63a22f066ac1 (diff)
parent1e542e417725bb148253929fac9146832d978e45 (diff)
downloadrpg-3dd4a911f6492d9dce2b58bcd44c917489f50301.tar.gz
rpg-3dd4a911f6492d9dce2b58bcd44c917489f50301.tar.bz2
Merge branch 'master' of git://github.com/splitbrain/dokuwiki into media-revisions
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/acl/admin.php11
-rw-r--r--lib/plugins/acl/ajax.php11
-rw-r--r--lib/plugins/plugin/classes/ap_download.class.php2
3 files changed, 7 insertions, 17 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>';
}
diff --git a/lib/plugins/acl/ajax.php b/lib/plugins/acl/ajax.php
index d91586a5d..d704fa8c9 100644
--- a/lib/plugins/acl/ajax.php
+++ b/lib/plugins/acl/ajax.php
@@ -44,13 +44,10 @@ if($ajax == 'info'){
$data = $acl->_get_tree($ns,$ns);
- foreach($data as $item){
- $item['level'] = $lvl+1;
- echo $acl->_html_li_acl($item);
- echo '<div class="li">';
- echo $acl->_html_list_acl($item);
- echo '</div>';
- echo '</li>';
+ foreach(array_keys($data) as $item){
+ $data[$item]['level'] = $lvl+1;
}
+ echo html_buildlist($data, 'acl', array($acl, '_html_list_acl'),
+ array($acl, '_html_li_acl'));
}
diff --git a/lib/plugins/plugin/classes/ap_download.class.php b/lib/plugins/plugin/classes/ap_download.class.php
index e3afd142a..6aab4ba3c 100644
--- a/lib/plugins/plugin/classes/ap_download.class.php
+++ b/lib/plugins/plugin/classes/ap_download.class.php
@@ -114,7 +114,7 @@ class ap_download extends ap_manage {
if ($tmp) $this->dir_delete($tmp);
if (!$this->manager->error) {
- msg(sprintf($this->lang['packageinstalled'], count($this->downloaded), (count($this->downloaded) != 1?'s':''), join(',',$this->downloaded)),1);
+ msg(sprintf($this->lang['packageinstalled'], count($this->downloaded), join(',',$this->downloaded)),1);
$this->refresh();
return true;
}