From: Kunal Mehta Date: Mon, 20 Apr 2015 15:04:01 +0000 (-0700) Subject: ApiFormatPhp: Fix dieUsage call on unknown formatversion value X-Git-Tag: 1.31.0-rc.0~11655^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=fec5b83d7e9b7e415fee530810112820909e5346;p=lhc%2Fweb%2Fwiklou.git ApiFormatPhp: Fix dieUsage call on unknown formatversion value Same as Ib6cee829b589 Change-Id: Ib695520b620e57dba342d984856e58adeaeb4ca8 --- diff --git a/includes/api/ApiFormatPhp.php b/includes/api/ApiFormatPhp.php index a6a6f3216e..d88dd40bd4 100644 --- a/includes/api/ApiFormatPhp.php +++ b/includes/api/ApiFormatPhp.php @@ -55,7 +55,7 @@ class ApiFormatPhp extends ApiFormatBase { break; default: - self::dieUsage( __METHOD__ . ': Unknown value for \'formatversion\'' ); + $this->dieUsage( __METHOD__ . ': Unknown value for \'formatversion\'', 'unknownformatversion' ); } $text = serialize( $this->getResult()->getResultData( null, $transforms ) );