aboutsummaryrefslogtreecommitdiffstats
path: root/includes/diff/TextDiffer/BaseTextDiffer.php
diff options
context:
space:
mode:
authordaniel <dkinzler@wikimedia.org>2024-12-04 09:18:17 +0100
committerdaniel <dkinzler@wikimedia.org>2024-12-13 10:38:10 +0100
commitfd58f87def50365dc0f193ca177f860c0b668209 (patch)
tree5d108e983bb82053da2a9d8d0817d69def639d9a /includes/diff/TextDiffer/BaseTextDiffer.php
parent0ab2ee7aecbafb43e399937810b3733b691f488c (diff)
downloadmediawikicore-fd58f87def50365dc0f193ca177f860c0b668209.tar.gz
mediawikicore-fd58f87def50365dc0f193ca177f860c0b668209.zip
Import: ensure PageUpdatedEvent has the correct properties.
Previously, PageUpdatedEvents emitted by ImportableOldRevisionImporter were always reporting a page creation, even if the page already existed. The reason is that DerivedPageContentUpdater::prepareUpdate() relies on $options['oldrevision'] to be supplied by the caller if grabCurrentRevision() wasn't called. ImportedOldRevisionImpoter was doing neither. This change ensures that they correctly report the revision that was current before the import by making the importer call grabCurrentRevision(). Note that prepareUpdate() cannot just call grabCurrentRevision(), because it's called after the current revision was already updated, so the old revision and new revision would end up being the same. Change-Id: I2d0108ac62dba67f2cf5bbfde431e570195ee3f6
Diffstat (limited to 'includes/diff/TextDiffer/BaseTextDiffer.php')
0 files changed, 0 insertions, 0 deletions