r12478 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12477‎ | r12478 | r12479 >
Date:13:38, 7 January 2006
Author:hashar
Status:old
Tags:
Comment:
Backport from HEAD:
Fix #4504: Use site language for namespace name resolution
Modified paths:
  • /branches/REL1_5/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_5/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: branches/REL1_5/phase3/includes/EditPage.php
@@ -1009,7 +1009,7 @@
10101010 * The necessary JavaScript code can be found in style/wikibits.js.
10111011 */
10121012 function getEditToolbar() {
1013 - global $wgStylePath, $wgLang, $wgMimeType, $wgJsMimeType;
 1013+ global $wgStylePath, $wgContLang, $wgMimeType, $wgJsMimeType;
10141014
10151015 /**
10161016 * toolarray an array of arrays which each include the filename of
@@ -1059,14 +1059,14 @@
10601060 'key' => 'H'
10611061 ),
10621062 array( 'image'=>'button_image.png',
1063 - 'open' => '[['.$wgLang->getNsText(NS_IMAGE).":",
 1063+ 'open' => '[['.$wgContLang->getNsText(NS_IMAGE).":",
10641064 'close' => ']]',
10651065 'sample'=> wfMsg('image_sample'),
10661066 'tip' => wfMsg('image_tip'),
10671067 'key' => 'D'
10681068 ),
10691069 array( 'image' =>'button_media.png',
1070 - 'open' => '[['.$wgLang->getNsText(NS_MEDIA).':',
 1070+ 'open' => '[['.$wgContLang->getNsText(NS_MEDIA).':',
10711071 'close' => ']]',
10721072 'sample'=> wfMsg('media_sample'),
10731073 'tip' => wfMsg('media_tip'),
Index: branches/REL1_5/phase3/RELEASE-NOTES
@@ -1009,6 +1009,7 @@
10101010
10111011 * (bug 4258) When installing under IIS, $wgArticlePath = "$wgScript?title=$1" should be set
10121012 * (bug 4510) Correct Barnes & Noble bookstore URLs
 1013+* (bug 4504) Use site language for namespace name resolution
10131014
10141015 === Caveats ===
10151016

Status & tagging log