diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-05-25 18:07:58 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-05-25 18:07:58 +0200 |
commit | 256ca81eb29f12a492c2354729a7b36d47cafdb6 (patch) | |
tree | a93e049a96480008c49d8a4228535e813dc4d048 | |
parent | 276b8bd9566cbdcc99b7c3ab8349e8c06843c23d (diff) | |
download | rpg-256ca81eb29f12a492c2354729a7b36d47cafdb6.tar.gz rpg-256ca81eb29f12a492c2354729a7b36d47cafdb6.tar.bz2 |
label for root of medianamespaces
darcs-hash:20060525160758-7ad00-43610809062192c93c4ec7dfb578e9f3eb6a0e80.gz
-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); |