jenkins-bot has submitted this change and it was merged.

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: I6c1bb9774542e39bfb899a47.

Bug: 59867
Change-Id: I5cc44c5ef358d9b19e9964545be29662083bd55c
---
M ApiVisualEditor.php
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I5cc44c5ef358d9b19e9964545be29662083bd55c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Robmoen <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to