From 5b7f1f3b592e34853484ba4748e2067a73218799 Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Tue, 22 Dec 2009 14:12:23 +0000 Subject: [PATCH] follow-up r60272. replace $_GET with $wgRequest->getText. --- includes/OutputPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) { -- 2.20.1