Apply PST when generating diff

Bug: 52345
Change-Id: Ic676105d230baf77994224bd64ed40cb52bb2e8b
This commit is contained in:
Krenair 2014-04-23 20:48:08 +01:00
parent c034e31404
commit c32880049f

View file

@ -211,7 +211,13 @@ class ApiVisualEditor extends ApiBase {
'action' => 'query',
'prop' => 'revisions',
'titles' => $title->getPrefixedDBkey(),
'rvdifftotext' => $wikitext
'rvdifftotext' => ContentHandler::makeContent( $wikitext, $title )
->preSaveTransform(
$title,
$this->getUser(),
WikiPage::factory( $title )->makeParserOptions( $this->getContext() )
)
->serialize( 'text/x-wiki' )
);
$api = new ApiMain(
new DerivativeRequest(