mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 11:04:17 +00:00
Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator Bug: T275455 Change-Id: I69cfbbe5b00a4e15a0d6492541292bcddd61069a
This commit is contained in:
parent
9c3fe53170
commit
14589459a1
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
|
use Wikimedia\ParamValidator\ParamValidator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API module for serving debug console requests on the edit page
|
* API module for serving debug console requests on the edit page
|
||||||
|
@ -144,20 +145,20 @@ class ApiScribuntoConsole extends ApiBase {
|
||||||
public function getAllowedParams() {
|
public function getAllowedParams() {
|
||||||
return [
|
return [
|
||||||
'title' => [
|
'title' => [
|
||||||
ApiBase::PARAM_TYPE => 'string',
|
ParamValidator::PARAM_TYPE => 'string',
|
||||||
],
|
],
|
||||||
'content' => [
|
'content' => [
|
||||||
ApiBase::PARAM_TYPE => 'text'
|
ParamValidator::PARAM_TYPE => 'text'
|
||||||
],
|
],
|
||||||
'session' => [
|
'session' => [
|
||||||
ApiBase::PARAM_TYPE => 'integer',
|
ParamValidator::PARAM_TYPE => 'integer',
|
||||||
],
|
],
|
||||||
'question' => [
|
'question' => [
|
||||||
ApiBase::PARAM_TYPE => 'text',
|
ParamValidator::PARAM_TYPE => 'text',
|
||||||
ApiBase::PARAM_REQUIRED => true,
|
ParamValidator::PARAM_REQUIRED => true,
|
||||||
],
|
],
|
||||||
'clear' => [
|
'clear' => [
|
||||||
ApiBase::PARAM_TYPE => 'boolean',
|
ParamValidator::PARAM_TYPE => 'boolean',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue