diff options
Diffstat (limited to 'includes/Title.php')
-rw-r--r-- | includes/Title.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/Title.php b/includes/Title.php index 8d7275ff..be41a85a 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2606,9 +2606,8 @@ class Title { // purge variant urls as well 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); + foreach ( $variants as $vCode ) { + $urls[] = $this->getInternalURL( '', $vCode ); } } |