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
Merge "Convert article delete to use OOUI"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryDisabled.php
diff --git
a/includes/api/ApiQueryDisabled.php
b/includes/api/ApiQueryDisabled.php
index
cf0d841
..
a94af69
100644
(file)
--- a/
includes/api/ApiQueryDisabled.php
+++ b/
includes/api/ApiQueryDisabled.php
@@
-37,24
+37,22
@@
class ApiQueryDisabled extends ApiQueryBase {
public function execute() {
class ApiQueryDisabled extends ApiQueryBase {
public function execute() {
- $this->
setWarning( "The \"{$this->getModuleName()}\" module has been disabled."
);
+ $this->
addWarning( [ 'apierror-moduledisabled', $this->getModuleName() ]
);
}
public function getAllowedParams() {
}
public function getAllowedParams() {
- return
array()
;
+ return
[]
;
}
}
- public function get
ParamDescription
() {
- return
array()
;
+ public function get
DescriptionMessage
() {
+ return
'apihelp-query+disabled-summary'
;
}
}
- public function getDescription() {
- return array(
- 'This module has been disabled.'
- );
+ public function getSummaryMessage() {
+ return 'apihelp-query+disabled-summary';
}
}
- public function getEx
amples
() {
- return
array()
;
+ public function getEx
tendedDescription
() {
+ return
'apihelp-query+disabled-extended-description'
;
}
}
}
}