From 90eab85ae33dbfbdac18b8f7251db8bc469a5806 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 7 Jan 2006 13:36:19 +0000 Subject: [PATCH] Fix #4504: Use site language for namespace name resolution --- includes/EditPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index dd6e6ba78d..c174a28413 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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'), -- 2.20.1