dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6a963
)
ApiFormatJson: Fix dieUsage call on unknown formatversion value
author
Kunal Mehta
<legoktm@gmail.com>
Fri, 17 Apr 2015 23:37:09 +0000
(16:37 -0700)
committer
Umherirrender
<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
patch
|
blob
|
history
diff --git
a/includes/api/ApiFormatJson.php
b/includes/api/ApiFormatJson.php
index
3304c40
..
43877b7
100644
(file)
--- a/
includes/api/ApiFormatJson.php
+++ b/
includes/api/ApiFormatJson.php
@@
-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 );