Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -845,7 +845,7 @@ |
846 | 846 | } |
847 | 847 | |
848 | 848 | /** bug 21672: Add Accept-Language to Vary and XVO headers |
849 | | - if there's no 'variant' parameter existed in $_GET. |
| 849 | + if there's no 'variant' parameter existed in GET. |
850 | 850 | |
851 | 851 | For example: |
852 | 852 | /w/index.php?title=Main_page should always be served; but |
— | — | @@ -853,8 +853,8 @@ |
854 | 854 | |
855 | 855 | patched by Liangent and Philip */ |
856 | 856 | function addAcceptLanguage() { |
857 | | - global $wgContLang; |
858 | | - if( !isset( $_GET['variant'] ) && $wgContLang->hasVariants() ) { |
| 857 | + global $wgRequest, $wgContLang; |
| 858 | + if( $wgRequest->getText('variant') == false && $wgContLang->hasVariants() ) { |
859 | 859 | $variants = $wgContLang->getVariants(); |
860 | 860 | $aloption = array(); |
861 | 861 | foreach ( $variants as $variant ) { |