From: Rob Church Date: Sun, 2 Apr 2006 22:59:26 +0000 (+0000) Subject: (bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent X-Git-Tag: 1.6.0~61 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%7B%7B%20url_for%28%27user_settings%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=08f15ca1451f1cb2f414806232c2d6d5008550a2;p=lhc%2Fweb%2Fwiklou.git (bug 5410) Use namespace name when a custom namespace's nstab-NS message is nonexistent --- 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(