* @ingroup Maintenance
*/
-use MediaWiki\Storage\SlotRecord;
+use MediaWiki\Revision\SlotRecord;
require_once __DIR__ . '/Maintenance.php';
$wgUser->addToDatabase();
}
- $title = Title::newFromText( $this->getArg() );
+ $title = Title::newFromText( $this->getArg( 0 ) );
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
$exit = 1;
}
if ( !$status->isGood() ) {
- $this->output( $status->getWikiText( false, false, 'en' ) . "\n" );
+ $this->output( $status->getMessage( false, false, 'en' )->text() . "\n" );
}
exit( $exit );
}