diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /includes/api/ApiRollback.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'includes/api/ApiRollback.php')
-rw-r--r-- | includes/api/ApiRollback.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 677df16a..b9873f49 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -29,10 +29,6 @@ */ class ApiRollback extends ApiBase { - public function __construct( $main, $action ) { - parent::__construct( $main, $action ); - } - /** * @var Title */ @@ -185,7 +181,7 @@ class ApiRollback extends ApiBase { $this->mTitleObj = Title::newFromText( $params['title'] ); - if ( !$this->mTitleObj ) { + if ( !$this->mTitleObj || $this->mTitleObj->isExternal() ) { $this->dieUsageMsg( array( 'invalidtitle', $params['title'] ) ); } if ( !$this->mTitleObj->exists() ) { @@ -205,8 +201,4 @@ class ApiRollback extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Rollback'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } |