From fec5b83d7e9b7e415fee530810112820909e5346 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Mon, 20 Apr 2015 08:04:01 -0700 Subject: [PATCH] ApiFormatPhp: Fix dieUsage call on unknown formatversion value Same as Ib6cee829b589 Change-Id: Ib695520b620e57dba342d984856e58adeaeb4ca8 --- includes/api/ApiFormatPhp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1