dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
resources: Strip '$' and 'mw' from file closures
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiErrorFormatter.php
diff --git
a/includes/api/ApiErrorFormatter.php
b/includes/api/ApiErrorFormatter.php
index
c637752
..
af23f95
100644
(file)
--- a/
includes/api/ApiErrorFormatter.php
+++ b/
includes/api/ApiErrorFormatter.php
@@
-203,7
+203,7
@@
class ApiErrorFormatter {
public function formatException( $exception, array $options = [] ) {
return $this->formatMessage(
$this->getMessageFromException( $exception, $options ),
-
isset( $options['format'] ) ? $options['format'] :
null
+
$options['format'] ??
null
);
}