r12477 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12476‎ | r12477 | r12478 >
Date:13:36, 7 January 2006
Author:hashar
Status:old
Tags:
Comment:
Fix #4504: Use site language for namespace name resolution
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1251,7 +1251,7 @@
12521252 * The necessary JavaScript code can be found in style/wikibits.js.
12531253 */
12541254 function getEditToolbar() {
1255 - global $wgStylePath, $wgLang, $wgJsMimeType;
 1255+ global $wgStylePath, $wgContLang, $wgJsMimeType;
12561256
12571257 /**
12581258 * toolarray an array of arrays which each include the filename of
@@ -1301,14 +1301,14 @@
13021302 'key' => 'H'
13031303 ),
13041304 array( 'image'=>'button_image.png',
1305 - 'open' => '[['.$wgLang->getNsText(NS_IMAGE).":",
 1305+ 'open' => '[['.$wgContLang->getNsText(NS_IMAGE).":",
13061306 'close' => ']]',
13071307 'sample'=> wfMsg('image_sample'),
13081308 'tip' => wfMsg('image_tip'),
13091309 'key' => 'D'
13101310 ),
13111311 array( 'image' =>'button_media.png',
1312 - 'open' => '[['.$wgLang->getNsText(NS_MEDIA).':',
 1312+ 'open' => '[['.$wgContLang->getNsText(NS_MEDIA).':',
13131313 'close' => ']]',
13141314 'sample'=> wfMsg('media_sample'),
13151315 'tip' => wfMsg('media_tip'),

Status & tagging log