follow-up r60272 and r60292. replace getText with getCheck.
[lhc/web/wiklou.git] / 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 ) {