X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMergeHistory.php;h=1a950c5f5e1f74262aa8e0fe0b730c2c324acf87;hb=7612ebe9ca00892bdf73e7ad74a3ca2e11e6f590;hp=4045a5436b56127550ec76709fe8dc9207e3ffa4;hpb=106d0ed034484f96d7f1247932e2754e47848fdf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MergeHistory.php b/includes/MergeHistory.php index 4045a5436b..1a950c5f5e 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',