From: Philip Tzou Date: Tue, 22 Dec 2009 14:36:00 +0000 (+0000) Subject: follow-up r60272 and r60292. replace getText with getCheck. X-Git-Tag: 1.31.0-rc.0~38487 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=a2d494dae300c2f89801d2dff36158b8f7c0bab0;p=lhc%2Fweb%2Fwiklou.git follow-up r60272 and r60292. replace getText with getCheck. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index c149a6bda0..cd02d2cc13 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ) {