r13434 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13433‎ | r13434 | r13435 >
Date:22:59, 2 April 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -548,7 +548,8 @@
549549
550550 $text = wfMsg( $message );
551551 if ( $text == "<$message>" ) {
552 - $text = html_entity_decode($text);
 552+ global $wgContLang;
 553+ $text = $wgContLang->getNsText( Namespace::getSubject( $title->getNamespace() ) );
553554 }
554555
555556 return array(
Index: trunk/phase3/RELEASE-NOTES
@@ -730,8 +730,8 @@
731731 * Added optional suggest feature for the search box. Set wgUseAjax to true to
732732 enable it.
733733 * (bug 5277) Use audio/midi rather that audio/mid
 734+* (bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent
734735
735 -
736736 === Caveats ===
737737
738738 Some output, particularly involving user-supplied inline HTML, may not

Status & tagging log