X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FnukePage.php;h=de037dc1c9472d171397c7127dee5428e7d786af;hb=9f8bf89dd442f0271978418a2096feff34d38ff1;hp=dc455209964a4426e559f1e626a09e8a6a4945a0;hpb=3a302b9b1e1ec58e46ae56df428c6c684cdac7f4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/nukePage.php b/maintenance/nukePage.php index dc45520996..de037dc1c9 100644 --- a/maintenance/nukePage.php +++ b/maintenance/nukePage.php @@ -33,7 +33,7 @@ require_once __DIR__ . '/Maintenance.php'; class NukePage extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Remove a page record from the database"; + $this->addDescription( 'Remove a page record from the database' ); $this->addOption( 'delete', "Actually delete the page" ); $this->addArg( 'title', 'Title to delete' ); } @@ -62,7 +62,7 @@ class NukePage extends Maintenance { # Get corresponding revisions $this->output( "Searching for revisions..." ); $res = $dbw->query( "SELECT rev_id FROM $tbl_rev WHERE rev_page = $id" ); - $revs = array(); + $revs = []; foreach ( $res as $row ) { $revs[] = $row->rev_id; }