jenkins-bot has submitted this change and it was merged. Change subject: Title can only be plaintext ......................................................................
Title can only be plaintext It makes no sense to specify a format here! Change-Id: Ifc18373b5f34a2c732797842655296363acb8bc0 --- M i18n/en.json M i18n/qqq.json M includes/api/ApiFlowEditTitle.php 3 files changed, 2 insertions(+), 10 deletions(-) Approvals: Mattflaschen: Looks good to me, approved jenkins-bot: Verified diff --git a/i18n/en.json b/i18n/en.json index 41f14bb..40c905d 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -433,7 +433,6 @@ "apihelp-flow+edit-title-description": "Edits a topic's title.", "apihelp-flow+edit-title-param-prev_revision": "Revision ID of the current title revision, to check for edit conflicts.", "apihelp-flow+edit-title-param-content": "Content for title.", - "apihelp-flow+edit-title-param-format": "Format of the summary (wikitext|html)", "apihelp-flow+edit-title-example-1": "Edit the title of [[Topic:S2tycnas4hcucw8w]]", "apihelp-flow+edit-title-param-metadataonly": "Whether to include only metadata about the new content, excluding everything else", "apihelp-flow+edit-topic-summary-description": "Edits a topic summary's content.", diff --git a/i18n/qqq.json b/i18n/qqq.json index a21d048..7dfb98f 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -435,7 +435,6 @@ "apihelp-flow+edit-title-description": "{{doc-apihelp-description|flow+edit-title}}", "apihelp-flow+edit-title-param-prev_revision": "{{doc-apihelp-param|flow+edit-title|prev_revision}}", "apihelp-flow+edit-title-param-content": "{{doc-apihelp-param|flow+edit-title|content}}", - "apihelp-flow+edit-title-param-format": "{{doc-apihelp-param|flow+edit-title|format}}", "apihelp-flow+edit-title-example-1": "{{doc-apihelp-example|flow+edit-title}}", "apihelp-flow+edit-title-param-metadataonly": "{{doc-apihelp-param|flow+edit-title|metadataonly}}", "apihelp-flow+edit-topic-summary-description": "{{doc-apihelp-description|flow+edit-topic-summary}}", diff --git a/includes/api/ApiFlowEditTitle.php b/includes/api/ApiFlowEditTitle.php index 279616b..d641144 100644 --- a/includes/api/ApiFlowEditTitle.php +++ b/includes/api/ApiFlowEditTitle.php @@ -26,11 +26,6 @@ 'content' => array( ApiBase::PARAM_REQUIRED => true, ), - 'format' => array( - ApiBase::PARAM_REQUIRED => true, - ApiBase::PARAM_DFLT => 'wikitext', - ApiBase::PARAM_TYPE => array( 'html', 'wikitext' ), - ), ) + parent::getAllowedParams(); } @@ -41,7 +36,6 @@ return array( 'prev_revision' => 'Revision id of the current title revision to check for edit conflicts', 'content' => 'Content for title', - 'format' => 'Format of the content (wikitext|html)', ); } @@ -57,7 +51,7 @@ */ public function getExamples() { return array( - 'api.php?action=flow&submodule=edit-title&page=Topic:S2tycnas4hcucw8w&ehprev_revision=???&ehtcontent=Nice%20to&20meet%20you&ehtformat=wikitext', + 'api.php?action=flow&submodule=edit-title&page=Topic:S2tycnas4hcucw8w&etprev_revision=???&etcontent=Nice%20to&20meet%20you', ); } @@ -66,7 +60,7 @@ */ protected function getExamplesMessages() { return array( - 'action=flow&submodule=edit-title&page=Topic:S2tycnas4hcucw8w&ehprev_revision=???&ehtcontent=Nice%20to&20meet%20you&ehtformat=wikitext' + 'action=flow&submodule=edit-title&page=Topic:S2tycnas4hcucw8w&etprev_revision=???&ehtcontent=Nice%20to&20meet%20you' => 'apihelp-flow+edit-title-example-1', ); } -- To view, visit https://gerrit.wikimedia.org/r/196567 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifc18373b5f34a2c732797842655296363acb8bc0 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org> Gerrit-Reviewer: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Mattflaschen <mflasc...@wikimedia.org> Gerrit-Reviewer: SG <shah...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits