mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator Bug: T275455 Change-Id: I9ed72118c05cff879142ed89a3906c077413d25b
This commit is contained in:
parent
15fd46f064
commit
731d530534
|
@ -358,7 +358,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
||||||
ParamValidator::PARAM_REQUIRED => true,
|
ParamValidator::PARAM_REQUIRED => true,
|
||||||
],
|
],
|
||||||
'formtoken' => [
|
'formtoken' => [
|
||||||
ApiBase::PARAM_TYPE => 'string',
|
ParamValidator::PARAM_TYPE => 'string',
|
||||||
StringDef::PARAM_MAX_CHARS => 16,
|
StringDef::PARAM_MAX_CHARS => 16,
|
||||||
],
|
],
|
||||||
'commentname' => null,
|
'commentname' => null,
|
||||||
|
@ -380,7 +380,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
||||||
ParamValidator::PARAM_TYPE => 'string',
|
ParamValidator::PARAM_TYPE => 'string',
|
||||||
],
|
],
|
||||||
'useskin' => [
|
'useskin' => [
|
||||||
ApiBase::PARAM_TYPE => array_keys(
|
ParamValidator::PARAM_TYPE => array_keys(
|
||||||
MediaWikiServices::getInstance()->getSkinFactory()->getInstalledSkins()
|
MediaWikiServices::getInstance()->getSkinFactory()->getInstalledSkins()
|
||||||
),
|
),
|
||||||
ApiBase::PARAM_HELP_MSG => 'apihelp-parse-param-useskin',
|
ApiBase::PARAM_HELP_MSG => 'apihelp-parse-param-useskin',
|
||||||
|
|
|
@ -57,7 +57,7 @@ class ApiDiscussionToolsGetSubscriptions extends ApiBase {
|
||||||
return [
|
return [
|
||||||
'commentname' => [
|
'commentname' => [
|
||||||
ParamValidator::PARAM_REQUIRED => true,
|
ParamValidator::PARAM_REQUIRED => true,
|
||||||
ApiBase::PARAM_ISMULTI => true,
|
ParamValidator::PARAM_ISMULTI => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,9 +88,9 @@ class ApiDiscussionToolsPageInfo extends ApiBase {
|
||||||
],
|
],
|
||||||
'oldid' => null,
|
'oldid' => null,
|
||||||
'prop' => [
|
'prop' => [
|
||||||
ApiBase::PARAM_DFLT => 'transcludedfrom',
|
ParamValidator::PARAM_DEFAULT => 'transcludedfrom',
|
||||||
ApiBase::PARAM_ISMULTI => true,
|
ParamValidator::PARAM_ISMULTI => true,
|
||||||
ApiBase::PARAM_TYPE => [
|
ParamValidator::PARAM_TYPE => [
|
||||||
'transcludedfrom',
|
'transcludedfrom',
|
||||||
'threaditemshtml'
|
'threaditemshtml'
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue