Fix #4504: Use site language for namespace name resolution
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 7 Jan 2006 13:36:19 +0000 (13:36 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 7 Jan 2006 13:36:19 +0000 (13:36 +0000)
includes/EditPage.php

index dd6e6ba..c174a28 100644 (file)
@@ -1251,7 +1251,7 @@ END
         * The necessary JavaScript code can be found in style/wikibits.js.
         */
        function getEditToolbar() {
-               global $wgStylePath, $wgLang, $wgJsMimeType;
+               global $wgStylePath, $wgContLang, $wgJsMimeType;
 
                /**
                 * toolarray an array of arrays which each include the filename of
@@ -1301,14 +1301,14 @@ END
                                        'key'   =>      'H'
                                ),
                        array(  'image'=>'button_image.png',
-                                       'open'  =>      '[['.$wgLang->getNsText(NS_IMAGE).":",
+                                       'open'  =>      '[['.$wgContLang->getNsText(NS_IMAGE).":",
                                        'close' =>      ']]',
                                        'sample'=>      wfMsg('image_sample'),
                                        'tip'   =>      wfMsg('image_tip'),
                                        'key'   =>      'D'
                                ),
                        array(  'image' =>'button_media.png',
-                                       'open'  =>      '[['.$wgLang->getNsText(NS_MEDIA).':',
+                                       'open'  =>      '[['.$wgContLang->getNsText(NS_MEDIA).':',
                                        'close' =>      ']]',
                                        'sample'=>      wfMsg('media_sample'),
                                        'tip'   =>      wfMsg('media_tip'),