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
Avoid multiply calls to MediaWikiServices::getInstance() in one function
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiEditPage.php
diff --git
a/includes/api/ApiEditPage.php
b/includes/api/ApiEditPage.php
index
e631e3f
..
fdf9cf1
100644
(file)
--- a/
includes/api/ApiEditPage.php
+++ b/
includes/api/ApiEditPage.php
@@
-378,6
+378,7
@@
class ApiEditPage extends ApiBase {
$status = $ep->attemptSave( $result );
$wgRequest = $oldRequest;
+ $r = [];
switch ( $status->value ) {
case EditPage::AS_HOOK_ERROR:
case EditPage::AS_HOOK_ERROR_EXPECTED: