Bug 24027: Variants like "zh" should get purged as others.
authorPhilip Tzou <philip@users.mediawiki.org>
Tue, 6 Jul 2010 06:59:52 +0000 (06:59 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Tue, 6 Jul 2010 06:59:52 +0000 (06:59 +0000)
includes/Title.php

index bba078d..4c7cda9 100644 (file)
@@ -2804,7 +2804,6 @@ class Title {
                if ( $wgContLang->hasVariants() ) {
                        $variants = $wgContLang->getVariants();
                        foreach ( $variants as $vCode ) {
-                               if ( $vCode == $wgContLang->getCode() ) continue; // we don't want default variant
                                $urls[] = $this->getInternalURL( '', $vCode );
                        }
                }