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
fc97522
..
684c425
100644
(file)
--- a/
includes/api/ApiDisabled.php
+++ b/
includes/api/ApiDisabled.php
@@
-37,7
+37,7
@@
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() {
}
public function isReadMode() {
@@
-45,6
+45,14
@@
class ApiDisabled extends ApiBase {
}
protected function getDescriptionMessage() {
}
protected function getDescriptionMessage() {
- return 'apihelp-disabled-description';
+ return 'apihelp-disabled-summary';
+ }
+
+ protected function getSummaryMessage() {
+ return 'apihelp-disabled-summary';
+ }
+
+ protected function getExtendedDescription() {
+ return 'apihelp-disabled-extended-description';
}
}
}
}