From: Tim Starling Date: Wed, 13 Feb 2013 05:01:14 +0000 (+0000) Subject: Merge "Added --all option and other features to purgeList.php" X-Git-Tag: 1.31.0-rc.0~20711 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=b4624ff17bb2f45298a43679cd8a7628f1ab538a;p=lhc%2Fweb%2Fwiklou.git Merge "Added --all option and other features to purgeList.php" --- b4624ff17bb2f45298a43679cd8a7628f1ab538a diff --cc maintenance/purgeList.php index 00b50083d7,1c261b1ccb..b72c417e73 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@@ -38,10 -41,12 +41,12 @@@ class PurgeList extends Maintenance } public function execute() { - if( $this->hasOption( 'namespace' ) ) { - $this->purgeNamespace(); + if ( $this->hasOption( 'all' ) ) { + $this->purgeNamespace( false ); + } elseif ( $this->hasOption( 'namespace' ) ) { + $this->purgeNamespace( intval( $this->getOption( 'namespace') ) ); } else { - $this->purgeList(); + $this->doPurge(); } $this->output( "Done!\n" ); }