mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
ApiDiscussionToolsEdit: Pass useskin & mobileformat to ApiVisualEditorEdit
From there they are passed on ApiParse. Change-Id: I8411379694961868c2540c42739fb4f5d7b61972
This commit is contained in:
parent
1df44c5102
commit
d1e56c7dc5
|
@ -103,6 +103,9 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
'section' => 'new',
|
||||
'sectiontitle' => $params['sectiontitle'],
|
||||
'starttimestamp' => wfTimestampNow(),
|
||||
'useskin' => $params['useskin'],
|
||||
// Param is added by hook in MobileFrontend
|
||||
'mobileformat' => $params['mobileformat'],
|
||||
'watchlist' => $params['watchlist'],
|
||||
'captchaid' => $params['captchaid'],
|
||||
'captchaword' => $params['captchaword']
|
||||
|
@ -246,6 +249,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
'baserevid' => $docRevId,
|
||||
'starttimestamp' => wfTimestampNow(),
|
||||
'etag' => $headers['etag'],
|
||||
'useskin' => $params['useskin'],
|
||||
'watchlist' => $params['watchlist'],
|
||||
'captchaid' => $params['captchaid'],
|
||||
'captchaword' => $params['captchaword']
|
||||
|
@ -343,6 +347,12 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
'sectiontitle' => [
|
||||
ParamValidator::PARAM_TYPE => 'string',
|
||||
],
|
||||
'useskin' => [
|
||||
ApiBase::PARAM_TYPE => array_keys(
|
||||
MediaWikiServices::getInstance()->getSkinFactory()->getInstalledSkins()
|
||||
),
|
||||
ApiBase::PARAM_HELP_MSG => 'apihelp-parse-param-useskin',
|
||||
],
|
||||
'watchlist' => [
|
||||
ApiBase::PARAM_HELP_MSG => 'apihelp-edit-param-watchlist',
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue