Merge "Added --all option and other features to purgeList.php"
authorTim Starling <tstarling@wikimedia.org>
Wed, 13 Feb 2013 05:01:14 +0000 (05:01 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 13 Feb 2013 05:01:14 +0000 (05:01 +0000)
1  2 
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" );
        }