X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FMergeHistory.php;h=0e9bb4673d9ded071fc3b066fcd396f30652d749;hp=9d638696413023a90095c354cf2d89357ff65040;hb=8624538de243da3779db5eb3362bedf78d2e2931;hpb=d19826aa35b206847a568a4b2c1c9ffaa615fca5 diff --git a/includes/MergeHistory.php b/includes/MergeHistory.php index 9d63869641..0e9bb4673d 100644 --- a/includes/MergeHistory.php +++ b/includes/MergeHistory.php @@ -1,10 +1,6 @@ * * This program is free software; you can redistribute it and/or modify @@ -24,6 +20,7 @@ * * @file */ +use MediaWiki\MediaWikiServices; use Wikimedia\Timestamp\TimestampException; use Wikimedia\Rdbms\IDatabase; @@ -335,6 +332,10 @@ class MergeHistory { } $this->dest->invalidateCache(); // update histories + // Duplicate watchers of the old article to the new article on history merge + $store = MediaWikiServices::getInstance()->getWatchedItemStore(); + $store->duplicateAllAssociatedEntries( $this->source, $this->dest ); + // Update our logs $logEntry = new ManualLogEntry( 'merge', 'merge' ); $logEntry->setPerformer( $user );