Merge "Apply PST when generating diff"

This commit is contained in:
jenkins-bot 2014-04-23 20:03:08 +00:00 committed by Gerrit Code Review
commit 09d8df88d1

View file

@ -211,7 +211,13 @@ class ApiVisualEditor extends ApiBase {
'action' => 'query', 'action' => 'query',
'prop' => 'revisions', 'prop' => 'revisions',
'titles' => $title->getPrefixedDBkey(), '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( $api = new ApiMain(
new DerivativeRequest( new DerivativeRequest(