r16859 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16858‎ | r16859 | r16860 >
Date:13:23, 8 October 2006
Author:rainman
Status:old
Tags:
Comment:

Minor edit (style..)
Modified paths:
  • /branches/SerbianVariants/phase3/maintenance/generateSitemap.php (modified) (history)

Diff [purge]

Index: branches/SerbianVariants/phase3/maintenance/generateSitemap.php
@@ -267,8 +267,8 @@
268268 // generate pages for language variants
269269 if($wgContLang->hasVariants()){
270270 $variants = $wgContLang->getVariants();
271 - unset($variants[array_search($wgContLang->getCode(),$variants)]); // we don't want default
272271 foreach($variants as $vCode){
 272+ if($vCode==$wgContLang->getCode()) continue; // we don't want default variant
273273 $entry = $this->fileEntry( $title->getFullVariantURL($vCode), $date, $this->priority( $namespace ) );
274274 $length += strlen( $entry );
275275 $this->write( $this->file, $entry );