From: Philip Tzou Date: Tue, 22 Dec 2009 14:12:23 +0000 (+0000) Subject: follow-up r60272. replace $_GET with $wgRequest->getText. X-Git-Tag: 1.31.0-rc.0~38488 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=5b7f1f3b592e34853484ba4748e2067a73218799;p=lhc%2Fweb%2Fwiklou.git follow-up r60272. replace $_GET with $wgRequest->getText. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index b7f06b3f1c..c149a6bda0 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -845,7 +845,7 @@ class OutputPage { } /** bug 21672: Add Accept-Language to Vary and XVO headers - if there's no 'variant' parameter existed in $_GET. + if there's no 'variant' parameter existed in GET. For example: /w/index.php?title=Main_page should always be served; but @@ -853,8 +853,8 @@ class OutputPage { patched by Liangent and Philip */ function addAcceptLanguage() { - global $wgContLang; - if( !isset( $_GET['variant'] ) && $wgContLang->hasVariants() ) { + global $wgRequest, $wgContLang; + if( $wgRequest->getText('variant') == false && $wgContLang->hasVariants() ) { $variants = $wgContLang->getVariants(); $aloption = array(); foreach ( $variants as $variant ) {