From 256ca81eb29f12a492c2354729a7b36d47cafdb6 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 25 May 2006 18:07:58 +0200 Subject: label for root of medianamespaces darcs-hash:20060525160758-7ad00-43610809062192c93c4ec7dfb578e9f3eb6a0e80.gz --- inc/lang/en/lang.php | 1 + inc/media.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'inc') 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 '