diff options
-rw-r--r-- | inc/lang/en/lang.php | 1 | ||||
-rw-r--r-- | inc/media.php | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index c5584113b..e3a852552 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -107,6 +107,7 @@ $lang['js']['keepopen'] = 'Keep window open on selection'; $lang['js']['hidedetails'] = 'Hide Details'; $lang['mediausage'] = 'Use the following syntax to reference this file:'; $lang['mediaview'] = 'View original file'; +$lang['mediaroot'] = 'root'; $lang['mediaupload'] = 'Upload a file to the current namespace here. To create subnamespaces, prepend them to your filename separated by colons.'; $lang['reference'] = 'References for'; diff --git a/inc/media.php b/inc/media.php index 7d2dbd5ff..cefd90f3f 100644 --- a/inc/media.php +++ b/inc/media.php @@ -435,6 +435,7 @@ function media_uploadform($ns, $auth){ */ function media_nstree($ns){ global $conf; + global $lang; // currently selected namespace $ns = cleanID($ns); @@ -448,7 +449,8 @@ function media_nstree($ns){ search($data,$conf['mediadir'],'search_index',array('ns' => $ns)); // wrap a list with the root level around the other namespaces - $item = array( 'level' => 0, 'id' => '', 'open' =>'true', 'label' => ':*'); + $item = array( 'level' => 0, 'id' => '', + 'open' =>'true', 'label' => '['.$lang['mediaroot'].']'); echo '<ul class="idx">'; echo media_nstree_li($item); |