mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 17:14:42 +00:00
Merge "Apply PST when generating diff"
This commit is contained in:
commit
09d8df88d1
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue