}
public function execute() {
- $title = Title::newFromText( $this->getArg() );
+ $title = Title::newFromText( $this->getArg( 0 ) );
if ( !$title ) {
$this->fatalError( "Invalid title" );
}
$this->fatalError( "Non-text content models not supported" );
}
- $this->output( $content->getNativeData() );
+ $this->output( $content->getText() );
}
}
-$maintClass = "ViewCLI";
+$maintClass = ViewCLI::class;
require_once RUN_MAINTENANCE_IF_MAIN;