From 08f15ca1451f1cb2f414806232c2d6d5008550a2 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 2 Apr 2006 22:59:26 +0000 Subject: [PATCH] (bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent --- RELEASE-NOTES | 2 +- includes/SkinTemplate.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9e5917f676..6505652607 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index a048fd5e4d..2a345c4e4f 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -548,7 +548,8 @@ class SkinTemplate extends Skin { $text = wfMsg( $message ); if ( $text == "<$message>" ) { - $text = html_entity_decode($text); + global $wgContLang; + $text = $wgContLang->getNsText( Namespace::getSubject( $title->getNamespace() ) ); } return array( -- 2.20.1