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 "Allow duplicate articles in parser tests with same content"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiDisabled.php
diff --git
a/includes/api/ApiDisabled.php
b/includes/api/ApiDisabled.php
index
e5ef3b7
..
684c425
100644
(file)
--- a/
includes/api/ApiDisabled.php
+++ b/
includes/api/ApiDisabled.php
@@
-37,26
+37,22
@@
class ApiDisabled extends ApiBase {
public function execute() {
class ApiDisabled extends ApiBase {
public function execute() {
- $this->die
Usage( "The \"{$this->getModuleName()}\" module has been disabled.", 'moduledisabled'
);
+ $this->die
WithError( [ 'apierror-moduledisabled', $this->getModuleName() ]
);
}
public function isReadMode() {
return false;
}
}
public function isReadMode() {
return false;
}
- p
ublic function getAllowedParams
() {
- return
array()
;
+ p
rotected function getDescriptionMessage
() {
+ return
'apihelp-disabled-summary'
;
}
}
- p
ublic function getParamDescription
() {
- return
array()
;
+ p
rotected function getSummaryMessage
() {
+ return
'apihelp-disabled-summary'
;
}
}
- public function getDescription() {
- return 'This module has been disabled';
- }
-
- public function getExamples() {
- return array();
+ protected function getExtendedDescription() {
+ return 'apihelp-disabled-extended-description';
}
}
}
}