* @ingroup Maintenance
*/
+use MediaWiki\Revision\RevisionRecord;
+
require_once __DIR__ . '/Maintenance.php';
/**
}
public function execute() {
- $title = Title::newFromText( $this->getArg() );
+ $title = Title::newFromText( $this->getArg( 0 ) );
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
$page = WikiPage::factory( $title );
- $content = $page->getContent( Revision::RAW );
+ $content = $page->getContent( RevisionRecord::RAW );
if ( !$content ) {
$this->fatalError( "Page has no content" );
}