mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Merge "Replace deprecated ChangeTags method calls with ChangeTagsStore"
This commit is contained in:
commit
409c2fb7e5
|
@ -9,7 +9,6 @@
|
|||
|
||||
namespace MediaWiki\Extension\DiscussionTools\Notifications;
|
||||
|
||||
use ChangeTags;
|
||||
use DateInterval;
|
||||
use DateTimeImmutable;
|
||||
use ExtensionRegistry;
|
||||
|
@ -338,7 +337,8 @@ class EventDispatcher {
|
|||
// Unclear if DeferredUpdates::addCallableUpdate() is needed,
|
||||
// but every extension does it that way.
|
||||
DeferredUpdates::addCallableUpdate( static function () use ( $newRevRecord ) {
|
||||
ChangeTags::addTags( [ 'discussiontools-added-comment' ], null, $newRevRecord->getId() );
|
||||
MediaWikiServices::getInstance()->getChangeTagsStore()
|
||||
->addTags( [ 'discussiontools-added-comment' ], null, $newRevRecord->getId() );
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue