diff options
author | Brad Jorsch <bjorsch@wikimedia.org> | 2015-05-07 12:39:55 -0400 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2015-05-29 19:26:44 +0000 |
commit | df80f1ead5daa993facf934fb32b0d5e10e3d5b9 (patch) | |
tree | 35eba4fa002545e0a621e504c19e25e8768807d2 /includes/api/ApiEmailUser.php | |
parent | b79196778ed7c4f49ae09bee9ba16f861a6e3760 (diff) | |
download | mediawikicore-df80f1ead5daa993facf934fb32b0d5e10e3d5b9.tar.gz mediawikicore-df80f1ead5daa993facf934fb32b0d5e10e3d5b9.zip |
API: Add more parameter types and improve info
New types 'text' and 'password' for where a <textarea> or
<input type="password"> would be preferred over <input type="text">.
Some timestamp parameters get actually tagged as 'timestamp'.
'submodule' types change the 'submodules' output property from a boolean
to an object indicating the mapping from values to module paths. And
they get an indication of the submodule parameter prefix (e.g.
generator's "g"), if applicable. "generator" actually gets reported as a
submodule type, using this new mechanism.
action=paraminfo will now indicate ApiBase::PARAM_RANGE_ENFORCE status,
and return better-formatted defaults for timestamps and booleans.
Change-Id: Ic862d6f8fe13f7eb6b4298683514d33af5823e47
Diffstat (limited to 'includes/api/ApiEmailUser.php')
-rw-r--r-- | includes/api/ApiEmailUser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 15eb475e73c8..efb9769b95b0 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -95,7 +95,7 @@ class ApiEmailUser extends ApiBase { ), 'subject' => null, 'text' => array( - ApiBase::PARAM_TYPE => 'string', + ApiBase::PARAM_TYPE => 'text', ApiBase::PARAM_REQUIRED => true ), 'ccme' => false, |