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:
Rob Moen 2014-01-09 13:16:55 -08:00 committed by Krinkle
parent bf8724bb2e
commit 3577ca7f6d

View file

@ -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 );