From a2d494dae300c2f89801d2dff36158b8f7c0bab0 Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Tue, 22 Dec 2009 14:36:00 +0000 Subject: [PATCH] follow-up r60272 and r60292. replace getText with getCheck. --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1