diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /includes/api/ApiFormatRaw.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'includes/api/ApiFormatRaw.php')
-rw-r--r-- | includes/api/ApiFormatRaw.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/api/ApiFormatRaw.php b/includes/api/ApiFormatRaw.php index d278efa0..3f5c8b73 100644 --- a/includes/api/ApiFormatRaw.php +++ b/includes/api/ApiFormatRaw.php @@ -31,11 +31,10 @@ class ApiFormatRaw extends ApiFormatBase { /** - * Constructor - * @param $main ApiMain object - * @param $errorFallback ApiFormatBase object to fall back on for errors + * @param ApiMain $main + * @param ApiFormatBase $errorFallback Object to fall back on for errors */ - public function __construct( $main, $errorFallback ) { + public function __construct( ApiMain $main, ApiFormatBase $errorFallback ) { parent::__construct( $main, 'raw' ); $this->mErrorFallback = $errorFallback; } @@ -58,6 +57,7 @@ class ApiFormatRaw extends ApiFormatBase { $data = $this->getResultData(); if ( isset( $data['error'] ) ) { $this->mErrorFallback->execute(); + return; } |