http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60292

Revision: 60292
Author:   philip
Date:     2009-12-22 14:12:23 +0000 (Tue, 22 Dec 2009)

Log Message:
-----------
follow-up r60272. replace $_GET with $wgRequest->getText.

Modified Paths:
--------------
    trunk/phase3/includes/OutputPage.php

Modified: trunk/phase3/includes/OutputPage.php
===================================================================
--- trunk/phase3/includes/OutputPage.php        2009-12-22 13:14:56 UTC (rev 
60291)
+++ trunk/phase3/includes/OutputPage.php        2009-12-22 14:12:23 UTC (rev 
60292)
@@ -845,7 +845,7 @@
        }
 
        /** 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 @@
                
                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 ) {



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to