From: Zheng Zhu Date: Thu, 21 Apr 2005 00:38:32 +0000 (+0000) Subject: Bypass conversion if the page being displayed is the conversion table X-Git-Tag: 1.5.0alpha1~219 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=5cc774c7435df6c8f171a50f50a198a61f10ed16;p=lhc%2Fweb%2Fwiklou.git Bypass conversion if the page being displayed is the conversion table --- diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 5a13497d99..95c4fdbb3d 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -186,6 +186,12 @@ class LanguageConverter { */ function convert( $text , $isTitle=false) { global $wgDisableLangConversion; + global $wgTitle; + + /* don't do anything if this is the conversion table */ + if($wgTitle->getNamespace() == NS_MEDIAWIKI && + strpos($wgTitle->getText(), "Conversiontable")!==false) + return $text; if($wgDisableLangConversion) return $text;