Fix the undefined variable and undefined property notices caused by r60763.
authorPhilip Tzou <philip@users.mediawiki.org>
Thu, 7 Jan 2010 18:02:33 +0000 (18:02 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Thu, 7 Jan 2010 18:02:33 +0000 (18:02 +0000)
languages/LanguageConverter.php

index 3105ab4..7bd487d 100644 (file)
@@ -30,6 +30,7 @@ class LanguageConverter {
        var $mFlags;
        var $mDescCodeSep = ':', $mDescVarSep = ';';
        var $mUcfirst = false;
+       var $mHeaderVariant;
 
        const CACHE_VERSION_KEY = 'VERSION 6';
 
@@ -543,7 +544,8 @@ class LanguageConverter {
         * @return string converted text
         * @public
         */
-       function convert( $text ) {
+       function convert( $text, $isTitle ) {
+               global $wgDisableLangConversion;
                if ( $wgDisableLangConversion ) return $text;
 
                $plang = $this->getPreferredVariant();