From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/api/ApiImport.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'includes/api/ApiImport.php') diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 637c1fff..1f0a5fab 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -31,10 +31,6 @@ */ class ApiImport extends ApiBase { - public function __construct( $main, $action ) { - parent::__construct( $main, $action ); - } - public function execute() { $user = $this->getUser(); $params = $this->extractRequestParams(); @@ -109,7 +105,9 @@ class ApiImport extends ApiBase { ApiBase::PARAM_REQUIRED => true ), 'summary' => null, - 'xml' => null, + 'xml' => array( + ApiBase::PARAM_TYPE => 'upload', + ), 'interwikisource' => array( ApiBase::PARAM_TYPE => $wgImportSources ), @@ -150,7 +148,7 @@ class ApiImport extends ApiBase { public function getDescription() { return array( - 'Import a page from another wiki, or an XML file.' , + 'Import a page from another wiki, or an XML file.', 'Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when', 'sending a file for the "xml" parameter.' ); @@ -186,10 +184,6 @@ class ApiImport extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Import'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } /** -- cgit v1.2.2