mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Apply PST when generating diff
Bug: 52345 Change-Id: Ic676105d230baf77994224bd64ed40cb52bb2e8b
This commit is contained in:
parent
c034e31404
commit
c32880049f
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue