diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /includes/api/ApiFormatRaw.php | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
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; } |