mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +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,
|
||||
],
|
||||
'formtoken' => [
|
||||
ApiBase::PARAM_TYPE => 'string',
|
||||
ParamValidator::PARAM_TYPE => 'string',
|
||||
StringDef::PARAM_MAX_CHARS => 16,
|
||||
],
|
||||
'commentname' => null,
|
||||
|
@ -380,7 +380,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
ParamValidator::PARAM_TYPE => 'string',
|
||||
],
|
||||
'useskin' => [
|
||||
ApiBase::PARAM_TYPE => array_keys(
|
||||
ParamValidator::PARAM_TYPE => array_keys(
|
||||
MediaWikiServices::getInstance()->getSkinFactory()->getInstalledSkins()
|
||||
),
|
||||
ApiBase::PARAM_HELP_MSG => 'apihelp-parse-param-useskin',
|
||||
|
|
|
@ -57,7 +57,7 @@ class ApiDiscussionToolsGetSubscriptions extends ApiBase {
|
|||
return [
|
||||
'commentname' => [
|
||||
ParamValidator::PARAM_REQUIRED => true,
|
||||
ApiBase::PARAM_ISMULTI => true,
|
||||
ParamValidator::PARAM_ISMULTI => true,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
@ -88,9 +88,9 @@ class ApiDiscussionToolsPageInfo extends ApiBase {
|
|||
],
|
||||
'oldid' => null,
|
||||
'prop' => [
|
||||
ApiBase::PARAM_DFLT => 'transcludedfrom',
|
||||
ApiBase::PARAM_ISMULTI => true,
|
||||
ApiBase::PARAM_TYPE => [
|
||||
ParamValidator::PARAM_DEFAULT => 'transcludedfrom',
|
||||
ParamValidator::PARAM_ISMULTI => true,
|
||||
ParamValidator::PARAM_TYPE => [
|
||||
'transcludedfrom',
|
||||
'threaditemshtml'
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue