Don't use $wgVariantArticlePath when the main language code is specified as a paramet...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 9 Apr 2010 12:41:25 +0000 (12:41 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 9 Apr 2010 12:41:25 +0000 (12:41 +0000)
includes/Title.php

index 09d68b2..700f7e6 100644 (file)
@@ -826,6 +826,9 @@ class Title {
                        $pref = $wgContLang->getPreferredVariant(false);
                        if($pref != $wgContLang->getCode())
                                $variant = $pref;
+               } elseif ( $variant == $wgContLang->getCode() ) {
+                       // Don't use $wgVariantArticlePath for the main code
+                       $variant = false;
                }
 
                if ( $this->isExternal() ) {