Merge "Make declaration of ApiFormatRaw compatible with ApiFormatBase"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 17 Oct 2014 22:45:39 +0000 (22:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 17 Oct 2014 22:45:39 +0000 (22:45 +0000)
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 );