X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatRaw.php;h=af175543d20d3339b2a01320c126656543518c73;hb=ab2d63b53ed29c44e4917125555af3dc2eb9964e;hp=184f0a34cc714b92a89fcf20c833243f2a57cf5d;hpb=eeb7300f6004e95620514eb9bac508425e94f197;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatRaw.php b/includes/api/ApiFormatRaw.php index 184f0a34cc..af175543d2 100644 --- a/includes/api/ApiFormatRaw.php +++ b/includes/api/ApiFormatRaw.php @@ -32,8 +32,8 @@ 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 ApiFormatBase object to fall back on for errors */ public function __construct( $main, $errorFallback ) { parent::__construct( $main, 'raw' ); @@ -58,6 +58,7 @@ class ApiFormatRaw extends ApiFormatBase { $data = $this->getResultData(); if ( isset( $data['error'] ) ) { $this->mErrorFallback->execute(); + return; } @@ -66,8 +67,4 @@ class ApiFormatRaw extends ApiFormatBase { } $this->printText( $data['text'] ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } }