mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Provide content format faux reqeust now that content format is validated
Related core change: I6c1bb9774542e39bfb899a47. Bug: 59867 Change-Id: I5cc44c5ef358d9b19e9964545be29662083bd55c
This commit is contained in:
parent
bf8724bb2e
commit
3577ca7f6d
|
@ -330,6 +330,7 @@ class ApiVisualEditor extends ApiBase {
|
|||
$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 );
|
||||
|
|
Loading…
Reference in a new issue