diff options
author | Reedy <reedy@wikimedia.org> | 2022-06-06 00:18:50 +0100 |
---|---|---|
committer | Reedy <reedy@wikimedia.org> | 2022-06-06 00:18:50 +0100 |
commit | 0b5084f868262e96fe226b412c14fc3a61a9f21f (patch) | |
tree | 1cf3d5845115fb51e5658cc174556d7066e95a8e /includes/api/ApiChangeContentModel.php | |
parent | 59809d6b217a29b1a34de374164ab1b59a4a2f13 (diff) | |
download | mediawikicore-0b5084f868262e96fe226b412c14fc3a61a9f21f.tar.gz mediawikicore-0b5084f868262e96fe226b412c14fc3a61a9f21f.zip |
api: Replace numerous deprecated constants
Change-Id: I34ffcb70efbfa257da8dab6e0790aa0d697caf5b
Diffstat (limited to 'includes/api/ApiChangeContentModel.php')
-rw-r--r-- | includes/api/ApiChangeContentModel.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/includes/api/ApiChangeContentModel.php b/includes/api/ApiChangeContentModel.php index 8167a79939ee..335b7834ee71 100644 --- a/includes/api/ApiChangeContentModel.php +++ b/includes/api/ApiChangeContentModel.php @@ -2,6 +2,7 @@ use MediaWiki\Content\IContentHandlerFactory; use MediaWiki\Page\ContentModelChangeFactory; +use Wikimedia\ParamValidator\ParamValidator; /** * Api module to change the content model of existing pages @@ -114,19 +115,19 @@ class ApiChangeContentModel extends ApiBase { return [ 'title' => [ - ApiBase::PARAM_TYPE => 'string', + ParamValidator::PARAM_TYPE => 'string', ], 'pageid' => [ - ApiBase::PARAM_TYPE => 'integer', + ParamValidator::PARAM_TYPE => 'integer', ], 'summary' => null, 'tags' => [ - ApiBase::PARAM_TYPE => 'tags', - ApiBase::PARAM_ISMULTI => true, + ParamValidator::PARAM_TYPE => 'tags', + ParamValidator::PARAM_ISMULTI => true, ], 'model' => [ - ApiBase::PARAM_TYPE => $modelOptions, - ApiBase::PARAM_REQUIRED => true, + ParamValidator::PARAM_TYPE => $modelOptions, + ParamValidator::PARAM_REQUIRED => true, ], 'bot' => false, ]; |