Bypass conversion if the page being displayed is the conversion table
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Thu, 21 Apr 2005 00:38:32 +0000 (00:38 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Thu, 21 Apr 2005 00:38:32 +0000 (00:38 +0000)
languages/LanguageConverter.php

index 5a13497..95c4fdb 100644 (file)
@@ -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;