follow-up r60272 and r60292. replace getText with getCheck.
authorPhilip Tzou <philip@users.mediawiki.org>
Tue, 22 Dec 2009 14:36:00 +0000 (14:36 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Tue, 22 Dec 2009 14:36:00 +0000 (14:36 +0000)
includes/OutputPage.php

index c149a6b..cd02d2c 100644 (file)
@@ -854,7 +854,7 @@ class OutputPage {
                patched by Liangent and Philip */
        function addAcceptLanguage() {
                global $wgRequest, $wgContLang;
-               if( $wgRequest->getText('variant') == false && $wgContLang->hasVariants() ) {
+               if( !$wgRequest->getCheck('variant') && $wgContLang->hasVariants() ) {
                        $variants = $wgContLang->getVariants();
                        $aloption = array();
                        foreach ( $variants as $variant ) {