r60293 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60292‎ | r60293 | r60294 >
Date:14:36, 22 December 2009
Author:philip
Status:ok
Tags:
Comment:
follow-up r60272 and r60292. replace getText with getCheck.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -854,7 +854,7 @@
855855 patched by Liangent and Philip */
856856 function addAcceptLanguage() {
857857 global $wgRequest, $wgContLang;
858 - if( $wgRequest->getText('variant') == false && $wgContLang->hasVariants() ) {
 858+ if( !$wgRequest->getCheck('variant') && $wgContLang->hasVariants() ) {
859859 $variants = $wgContLang->getVariants();
860860 $aloption = array();
861861 foreach ( $variants as $variant ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60272follow-up r59522. follow Tim's suggestion to serve same vary and XVO headers ...philip18:55, 21 December 2009
r60292follow-up r60272. replace $_GET with $wgRequest->getText.philip14:12, 22 December 2009

Status & tagging log