ApiFormatJson: Fix dieUsage call on unknown formatversion value
authorKunal Mehta <legoktm@gmail.com>
Fri, 17 Apr 2015 23:37:09 +0000 (16:37 -0700)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 20 Apr 2015 14:57:45 +0000 (14:57 +0000)
* Add missing error code
* Don't call staticly, it's not a static function

Change-Id: Ib6cee829b589f6fe0d092ebe7cca2a1d16c357fd

includes/api/ApiFormatJson.php

index 3304c40..43877b7 100644 (file)
@@ -91,7 +91,7 @@ class ApiFormatJson extends ApiFormatBase {
                                        break;
 
                                default:
-                                       self::dieUsage( __METHOD__ . ': Unknown value for \'formatversion\'' );
+                                       $this->dieUsage( __METHOD__ . ': Unknown value for \'formatversion\'', 'unknownformatversion' );
                        }
                }
                $data = $this->getResult()->getResultData( null, $transform );