X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FnukePage.php;h=9e0971a524e3d261f14e72489364ccb4fdac0eb5;hb=12216dc71c7fb3ac4c533a03e39819170e2a5b66;hp=baead9476c109328252262e7e30e6b1bf4e5942d;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/nukePage.php b/maintenance/nukePage.php index baead9476c..9e0971a524 100644 --- a/maintenance/nukePage.php +++ b/maintenance/nukePage.php @@ -39,7 +39,7 @@ class NukePage extends Maintenance { } public function execute() { - $name = $this->getArg(); + $name = $this->getArg( 0 ); $delete = $this->hasOption( 'delete' ); $dbw = $this->getDB( DB_MASTER ); @@ -92,7 +92,11 @@ class NukePage extends Maintenance { if ( $delete ) { $this->output( "Updating site stats..." ); $ga = $isGoodArticle ? -1 : 0; // if it was good, decrement that too - $stats = new SiteStatsUpdate( 0, -$count, $ga, -1 ); + $stats = SiteStatsUpdate::factory( [ + 'edits' => -$count, + 'articles' => $ga, + 'pages' => -1 + ] ); $stats->doUpdate(); $this->output( "done.\n" ); }