followup to r77176: code style, release notes
authorIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 2 Dec 2010 22:40:54 +0000 (22:40 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 2 Dec 2010 22:40:54 +0000 (22:40 +0000)
RELEASE-NOTES
maintenance/generateSitemap.php

index 822f521..93fe493 100644 (file)
@@ -543,6 +543,8 @@ LocalSettings.php. The specific bugs are listed below in the general notes.
 * (bug 26125) prop=imageinfo&iiprop=size now returns the page count if the 
   file is a multi-page file
 * (bug 10268) Added linktodiffs parameter on action=feedwatchlist
+* (bug 9675) generateSitemap.php now takes an --urlpath parameter to allow
+  absolute URLs in the sitemap index (as required e.g. by Google)
 
 === Languages updated in 1.17 ===
 
index ae6f722..30d6f73 100644 (file)
@@ -140,7 +140,9 @@ class GenerateSitemap extends Maintenance {
                $this->size_limit = pow( 2, 20 ) * 10;
                $this->fspath = self::init_path( $this->getOption( 'fspath', getcwd() ) );
                $this->urlpath = $this->getOption( 'urlpath', "" );
-               if ( $this->urlpath !== "" && substr( $this->urlpath, -1 ) !== '/' ) $this->urlpath .= '/';
+               if ( $this->urlpath !== "" && substr( $this->urlpath, -1 ) !== '/' ) {
+                       $this->urlpath .= '/';
+               }
                $this->compress = $this->getOption( 'compress', 'yes' ) !== 'no';
                $this->dbr = wfGetDB( DB_SLAVE );
                $this->generateNamespaces();