From: Marius Hoch Date: Tue, 14 Oct 2014 00:57:32 +0000 (+0200) Subject: Set default for unused variable in ApiFormatBase X-Git-Tag: 1.31.0-rc.0~13615^2 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=ed4d1a0847c771fe963eac3ccaf3d18e4df0cd7d;p=lhc%2Fweb%2Fwiklou.git Set default for unused variable in ApiFormatBase So that it can be left out when calling. Change-Id: I6137f5d57a12c0e52ad12b84428a82e8befae0c9 --- diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 1baaaecc86..7a08ed7d1b 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -119,7 +119,7 @@ abstract class ApiFormatBase extends ApiBase { * Initialize the printer function and prepare the output headers. * @param bool $unused Always false since 1.25 */ - function initPrinter( $unused ) { + function initPrinter( $unused = false ) { if ( $this->mDisabled ) { return; }