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
Add a reason field to both Special:PageLanguage and ApiSetPageLanguage
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiSetPageLanguage.php
diff --git
a/includes/api/ApiSetPageLanguage.php
b/includes/api/ApiSetPageLanguage.php
index
3f03c02
..
3ff99f1
100755
(executable)
--- a/
includes/api/ApiSetPageLanguage.php
+++ b/
includes/api/ApiSetPageLanguage.php
@@
-84,6
+84,7
@@
class ApiSetPageLanguage extends ApiBase {
$this,
$titleObj,
$params['lang'],
+ $params['reason'] === null ? '' : $params['reason'],
$params['tags'] ?: []
);
@@
-121,6
+122,7
@@
class ApiSetPageLanguage extends ApiBase {
),
ApiBase::PARAM_REQUIRED => true,
],
+ 'reason' => null,
'tags' => [
ApiBase::PARAM_TYPE => 'tags',
ApiBase::PARAM_ISMULTI => true,