From: Philip Tzou Date: Tue, 6 Jul 2010 06:59:52 +0000 (+0000) Subject: Bug 24027: Variants like "zh" should get purged as others. X-Git-Tag: 1.31.0-rc.0~36247 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=be270831fdfbaad18f49dde5ac1c0ee22ede23fd;p=lhc%2Fweb%2Fwiklou.git Bug 24027: Variants like "zh" should get purged as others. --- diff --git a/includes/Title.php b/includes/Title.php index bba078d3d1..4c7cda9e03 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 ); } }