(bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent
authorRob Church <robchurch@users.mediawiki.org>
Sun, 2 Apr 2006 22:59:26 +0000 (22:59 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 2 Apr 2006 22:59:26 +0000 (22:59 +0000)
RELEASE-NOTES
includes/SkinTemplate.php

index 9e5917f..6505652 100644 (file)
@@ -730,7 +730,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * Added optional suggest feature for the search box. Set wgUseAjax to true to
   enable it.
 * (bug 5277) Use audio/midi rather that audio/mid
-
+* (bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent
 
 === Caveats ===
 
index a048fd5..2a345c4 100644 (file)
@@ -548,7 +548,8 @@ class SkinTemplate extends Skin {
 
                $text = wfMsg( $message );
                if ( $text == "&lt;$message&gt;" ) {
-                       $text = html_entity_decode($text);
+                       global $wgContLang;
+                       $text = $wgContLang->getNsText( Namespace::getSubject( $title->getNamespace() ) );
                }
 
                return array(