Provide new, unsaved revision to PST to fix magic words.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 5 Sep 2018 18:03:15 +0000 (20:03 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 6 Sep 2018 16:33:44 +0000 (18:33 +0200)
commit465954aa23cec76ca47e51a58ff342f46fbbdcab
treee336ba88f97d933ec62a82164dcf08c4983121c5
parentd8e5553237ed29adb42db99535b0c76f43f7c5ab
Provide new, unsaved revision to PST to fix magic words.

This injects the new, unsaved RevisionRecord object into the Parser used
for Pre-Save Transform, and sets the user and timestamp on that revision,
to allow {{subst:REVISIONUSER}} and {{subst:REVISIONTIMESTAMP}} to function.

Bug: T203583
Change-Id: I31a97d0168ac22346b2dad6b88bf7f6f8a0dd9d0
includes/EditPage.php
includes/Storage/DerivedPageDataUpdater.php
includes/Storage/PageUpdater.php
includes/parser/Parser.php
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/Storage/PageUpdaterTest.php
tests/phpunit/includes/parser/ParserMethodsTest.php