From f3813647cf9ea056d5cc63e03635d98a91b8264e Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Fri, 17 Oct 2014 21:16:58 +0200 Subject: [PATCH] Make declaration of ApiFormatRaw compatible with ApiFormatBase This was causing PHP warnings. Change-Id: I96f66672756be3c09c20aea053f8a29241f56a19 --- includes/api/ApiFormatRaw.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1