Index: trunk/phase3/includes/Title.php |
— | — | @@ -826,6 +826,9 @@ |
827 | 827 | $pref = $wgContLang->getPreferredVariant(false); |
828 | 828 | if($pref != $wgContLang->getCode()) |
829 | 829 | $variant = $pref; |
| 830 | + } elseif ( $variant == $wgContLang->getCode() ) { |
| 831 | + // Don't use $wgVariantArticlePath for the main code |
| 832 | + $variant = false; |
830 | 833 | } |
831 | 834 | |
832 | 835 | if ( $this->isExternal() ) { |