$user = $this->getOption( 'user', false );
$reason = $this->getOption( 'reason', '' );
- $pageName = $this->getArg();
+ $pageName = $this->getArg( 0 );
$title = Title::newFromText( $pageName );
if ( !$title ) {
}
}
-$maintClass = "Undelete";
+$maintClass = Undelete::class;
require_once RUN_MAINTENANCE_IF_MAIN;