$this->addArg( 'api', 'API base url' );
$this->addArg( 'index', 'index.php base url' );
$this->addOption( 'username', 'User name of the script importer' );
$this->addArg( 'api', 'API base url' );
$this->addArg( 'index', 'index.php base url' );
$this->addOption( 'username', 'User name of the script importer' );
$username = $this->getOption( 'username', false );
if ( $username === false ) {
$username = $this->getOption( 'username', false );
if ( $username === false ) {
- 'title' => "MediaWiki:{$page}" ) );
- $text = Http::get( $url, array(), __METHOD__ );
+ 'title' => "MediaWiki:{$page}" ] );
+ $text = Http::get( $url, [], __METHOD__ );
$wikiPage = WikiPage::factory( $title );
$content = ContentHandler::makeContent( $text, $wikiPage->getTitle() );
$wikiPage = WikiPage::factory( $title );
$content = ContentHandler::makeContent( $text, $wikiPage->getTitle() );