jenkins-bot has submitted this change and it was merged.
Change subject: MT: Set the source HTML in the data object instead of passing
as data
......................................................................
MT: Set the source HTML in the data object instead of passing as data
New cxserver accepts both, but recommends passing data as object.
Change-Id: I32d27fb4c9e8c5594865f9ec01b0446c28570f24
---
M modules/tools/ext.cx.tools.mt.js
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Nikerabbit: Checked; Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 97772a9..8f7a16c 100644
--- a/modules/tools/ext.cx.tools.mt.js
+++ b/modules/tools/ext.cx.tools.mt.js
@@ -138,7 +138,9 @@
return $.ajax( {
type: 'post',
url: mtURL,
- data: sourceHtml,
+ data: {
+ html: sourceHtml
+ },
headers: {
Authorization: token
}
--
To view, visit https://gerrit.wikimedia.org/r/259975
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I32d27fb4c9e8c5594865f9ec01b0446c28570f24
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits