From: Marius Hoch Date: Fri, 17 Oct 2014 19:16:58 +0000 (+0200) Subject: Make declaration of ApiFormatRaw compatible with ApiFormatBase X-Git-Tag: 1.31.0-rc.0~13584^2 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=f3813647cf9ea056d5cc63e03635d98a91b8264e;p=lhc%2Fweb%2Fwiklou.git Make declaration of ApiFormatRaw compatible with ApiFormatBase This was causing PHP warnings. Change-Id: I96f66672756be3c09c20aea053f8a29241f56a19 --- diff --git a/includes/api/ApiFormatRaw.php b/includes/api/ApiFormatRaw.php index 235fca1454..81d2f4f562 100644 --- a/includes/api/ApiFormatRaw.php +++ b/includes/api/ApiFormatRaw.php @@ -55,7 +55,7 @@ class ApiFormatRaw extends ApiFormatBase { return $data['mime']; } - public function initPrinter( $unused ) { + public function initPrinter( $unused = false ) { $data = $this->getResultData(); if ( isset( $data['error'] ) ) { $this->errorFallback->initPrinter( $unused );