$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 );
}