X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgenerateSitemap.php;h=d273a6a80222451bce71fce8fe6f51a2344b9bf6;hb=9bd7c7f66058fe26e130759090e7a73beee4d3d0;hp=87af5b83cc7d5bd85a5c07520c8dd0305f6b5bf3;hpb=59e7337ea612d03d08b67e6ada707e3d7ced738d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index 87af5b83cc..d273a6a802 100644 --- a/maintenance/generateSitemap.php +++ b/maintenance/generateSitemap.php @@ -140,9 +140,6 @@ class GenerateSitemap extends Maintenance { */ private $identifier; - /** - * Constructor - */ public function __construct() { parent::__construct(); $this->addDescription( 'Creates a sitemap for the site' ); @@ -195,7 +192,7 @@ class GenerateSitemap extends Maintenance { } $this->identifier = $this->getOption( 'identifier', wfWikiID() ); $this->compress = $this->getOption( 'compress', 'yes' ) !== 'no'; - $this->skipRedirects = $this->getOption( 'skip-redirects', false ) !== false; + $this->skipRedirects = $this->hasOption( 'skip-redirects' ); $this->dbr = $this->getDB( DB_REPLICA ); $this->generateNamespaces(); $this->timestamp = wfTimestamp( TS_ISO_8601, wfTimestampNow() ); @@ -523,7 +520,7 @@ class GenerateSitemap extends Maintenance { function fileEntry( $url, $date, $priority ) { return "\t\n" . - // bug 34666: $url may contain bad characters such as ampersands. + // T36666: $url may contain bad characters such as ampersands. "\t\t" . htmlspecialchars( $url ) . "\n" . "\t\t$date\n" . "\t\t$priority\n" . @@ -545,7 +542,7 @@ class GenerateSitemap extends Maintenance { * @param int $namespace */ function generateLimit( $namespace ) { - // bug 17961: make a title with the longest possible URL in this namespace + // T19961: make a title with the longest possible URL in this namespace $title = Title::makeTitle( $namespace, str_repeat( "\xf0\xa8\xae\x81", 63 ) . "\xe5\x96\x83" ); $this->limit = [