diff --git a/includes/EchoHooks.php b/includes/EchoHooks.php index 988950b32..021780793 100644 --- a/includes/EchoHooks.php +++ b/includes/EchoHooks.php @@ -527,8 +527,6 @@ class EchoHooks implements RecentChange_saveHook { RevisionRecord $revisionRecord, EditResult $editResult ) { - global $wgEchoNotifications; - if ( $editResult->isNullEdit() ) { return; } @@ -587,7 +585,7 @@ class EchoHooks implements RecentChange_saveHook { // Handle the case of someone undoing an edit, either through the // 'undo' link in the article history or via the API. - if ( isset( $wgEchoNotifications['reverted'] ) && $undidRevId ) { + if ( $undidRevId ) { $store = MediaWikiServices::getInstance()->getRevisionStore(); $undidRevision = $store->getRevisionById( $undidRevId ); if (