r59559 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59558‎ | r59559 | r59560 >
Date:18:38, 29 November 2009
Author:philip
Status:ok
Tags:
Comment:
follow-up r59544. more comments added.
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -225,6 +225,8 @@
226226 // Redirect loops, no title in URL, $wgUsePathInfo URLs
227227 } else if( $action == 'view' && !$request->wasPosted() &&
228228 ( ( !isset($this->GET['title']) || $title->getPrefixedDBKey() != $this->GET['title'] ) ||
 229+ // No valid variant in URL (if the main-language has multi-variants), to ensure
 230+ // the Accept-Language would only be added to XVO when a 301 redirection happened
229231 ( !isset($this->GET['variant']) && $perferred != $wgContLang->getCode() &&
230232 $wgContLang->hasVariants() && !$wgUser->isLoggedIn() ) ) &&
231233 !count( array_diff( array_keys( $this->GET ), array( 'action', 'title' ) ) ) )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r59544follow-up r59541. Fix the problem reported on [[Special:Code/MediaWiki/59541#...philip10:53, 29 November 2009

Status & tagging log