From: Ævar Arnfjörð Bjarmason Date: Thu, 3 Nov 2005 08:16:50 +0000 (+0000) Subject: * Minor shuffling X-Git-Tag: 1.6.0~1231 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=d70d13f2ce17efd7b35fdd9daeaa66a4b5db4551;p=lhc%2Fweb%2Fwiklou.git * Minor shuffling --- diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index dcd124e5a9..b5c0a7d4da 100644 --- a/maintenance/generateSitemap.php +++ b/maintenance/generateSitemap.php @@ -136,7 +136,7 @@ class GenerateSitemap { $this->stderr = fopen( 'php://stderr', 'wt' ); $this->dbr =& wfGetDB( DB_SLAVE ); $this->generateNamespaces(); - $this->generateLimit( NS_MAIN ); + $this->generateTimestamp(); $this->findex = fopen( "{$this->fspath}sitemap-index-$wgDBname.xml", 'wb' ); } @@ -217,6 +217,7 @@ class GenerateSitemap { fwrite( $this->findex, $this->openIndex() ); + $this->generateLimit( NS_MAIN ); foreach ( $this->namespaces as $namespace ) { $res = $this->getPageRes( $namespace ); $this->file = false; @@ -230,7 +231,6 @@ class GenerateSitemap { $this->close( $this->file ); } $this->generateLimit( $namespace ); - $this->generateTimestamp(); $filename = $this->sitemapFilename( $namespace, $smcount++ ); $this->file = $this->open( $this->fspath . $filename, 'wb' ); $this->write( $this->file, $this->openFile() );