r64792 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64791‎ | r64792 | r64793 >
Date:12:41, 9 April 2010
Author:tstarling
Status:reverted
Tags:
Comment:
Don't use $wgVariantArticlePath when the main language code is specified as a parameter to Title::getLocalURL(). Breakage observed on sr.wikipedia.org.
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -826,6 +826,9 @@
827827 $pref = $wgContLang->getPreferredVariant(false);
828828 if($pref != $wgContLang->getCode())
829829 $variant = $pref;
 830+ } elseif ( $variant == $wgContLang->getCode() ) {
 831+ // Don't use $wgVariantArticlePath for the main code
 832+ $variant = false;
830833 }
831834
832835 if ( $this->isExternal() ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r64793MFT r64792tstarling12:43, 9 April 2010
r64797revert r64792tstarling12:57, 9 April 2010

Status & tagging log