[MCR] Move getSecondaryDataUpdates to the page level
[lhc/web/wiklou.git] / includes / Storage / PageUpdater.php
index 9d2f209..ec1f6e2 100644 (file)
@@ -1187,6 +1187,10 @@ class PageUpdater {
                                $wikiPage, $newRevisionRecord, $user,
                                $summary, $flags, $status, $hints
                        ) {
+                               // set debug data
+                               $hints['causeAction'] = 'edit-page';
+                               $hints['causeAgent'] = $user->getName();
+
                                $newLegacyRevision = new Revision( $newRevisionRecord );
                                $mainContent = $newRevisionRecord->getContent( 'main', RevisionRecord::RAW );