diff options
Diffstat (limited to 'includes/MergeHistory.php')
-rw-r--r-- | includes/MergeHistory.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/MergeHistory.php b/includes/MergeHistory.php index 4045a5436b56..1a950c5f5e1f 100644 --- a/includes/MergeHistory.php +++ b/includes/MergeHistory.php @@ -273,6 +273,18 @@ class MergeHistory { return $status; } + // Update denormalized revactor_page too + $this->dbw->update( + 'revision_actor_temp', + [ 'revactor_page' => $this->dest->getArticleID() ], + [ + 'revactor_page' => $this->source->getArticleID(), + // Slightly hacky, but should work given the values assigned in this class + str_replace( 'rev_timestamp', 'revactor_timestamp', $this->timeWhere ) + ], + __METHOD__ + ); + // Make the source page a redirect if no revisions are left $haveRevisions = $this->dbw->lockForUpdate( 'revision', |