X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FgenerateSitemap.php;h=d273a6a80222451bce71fce8fe6f51a2344b9bf6;hp=fb00bede071b850a4bfb9e713af72bec6ded1331;hb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;hpb=f17a70e253c24f5ceee072de10b7ef0b5b5e228a diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index fb00bede07..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() );