Robmoen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/106621
Change subject: Provide content format faux reqeust now that content format is
validated
......................................................................
Provide content format faux reqeust now that content format is validated
Related core change: I6c1bb9774542e39bfb899a47b7afac516fea4a16
Bug: 59867
Change-Id: I5cc44c5ef358d9b19e9964545be29662083bd55c
---
M ApiVisualEditor.php
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/21/106621/1
diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index af44830..9079ddc 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -330,6 +330,7 @@
$article = new Article( $page ); //
Deliberately omitting ,0 so oldid comes from request
$ep = new EditPage( $article );
$req = $this->getRequest();
+ $req->setVal( 'format', 'text/x-wiki' );
$ep->importFormData( $req ); // By reference
for some reason (bug 52466)
$tabindex = 0;
$states = array( 'minor' => false, 'watch' =>
false );
--
To view, visit https://gerrit.wikimedia.org/r/106621
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5cc44c5ef358d9b19e9964545be29662083bd55c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Robmoen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits