diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-07-15 00:16:07 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-07-15 00:16:07 +0300 |
commit | 3dd4a911f6492d9dce2b58bcd44c917489f50301 (patch) | |
tree | 3bae66359cf2957253740e1dac6fae74b0e3cd15 /inc/media.php | |
parent | c439558b00bf5429e11461bc999b63a22f066ac1 (diff) | |
parent | 1e542e417725bb148253929fac9146832d978e45 (diff) | |
download | rpg-3dd4a911f6492d9dce2b58bcd44c917489f50301.tar.gz rpg-3dd4a911f6492d9dce2b58bcd44c917489f50301.tar.bz2 |
Merge branch 'master' of git://github.com/splitbrain/dokuwiki into media-revisions
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/inc/media.php b/inc/media.php index b4a0ad114..138eb26c2 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1439,15 +1439,10 @@ function media_nstree($ns){ search($data,$conf['mediadir'],'search_index',array('ns' => $ns, 'nofiles' => true)); // wrap a list with the root level around the other namespaces - $item = array( 'level' => 0, 'id' => '', - 'open' =>'true', 'label' => '['.$lang['mediaroot'].']'); + array_unshift($data, array('level' => 0, 'id' => '', 'open' =>'true', + 'label' => '['.$lang['mediaroot'].']')); - echo '<ul class="idx">'; - echo media_nstree_li($item); - echo media_nstree_item($item); echo html_buildlist($data,'idx','media_nstree_item','media_nstree_li'); - echo '</li>'; - echo '</ul>'; } /** |