Make declaration of ApiFormatRaw compatible with ApiFormatBase
authorMarius Hoch <hoo@online.de>
Fri, 17 Oct 2014 19:16:58 +0000 (21:16 +0200)
committerMarius Hoch <hoo@online.de>
Fri, 17 Oct 2014 19:16:58 +0000 (21:16 +0200)
This was causing PHP warnings.

Change-Id: I96f66672756be3c09c20aea053f8a29241f56a19

includes/api/ApiFormatRaw.php

index 235fca1..81d2f4f 100644 (file)
@@ -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 );