From: Liangent Date: Sat, 4 Apr 2015 04:53:29 +0000 (+0800) Subject: Output converted namespace name in nstab when nstab-* is not defined X-Git-Tag: 1.31.0-rc.0~11821^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=d0e862f234a26586d1cc310defd018e9b3da101e;p=lhc%2Fweb%2Fwiklou.git Output converted namespace name in nstab when nstab-* is not defined In languages without converter implemented, FakeConverter just invokes Language::getFormattedNsText(), which is the function used originally. Change-Id: Ieb34a65776cf69bcd67f1ed8402eb3d38ece0f0c --- diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index b0390e9363..61aad92112 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -717,7 +717,7 @@ class SkinTemplate extends Skin { $text = $msg->text(); } else { global $wgContLang; - $text = $wgContLang->getFormattedNsText( + $text = $wgContLang->getConverter()->convertNamespace( MWNamespace::getSubject( $title->getNamespace() ) ); }