mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Remove redundant check
$wgEchoNotifications is checked inside EchoEvent::create(). Similar code (e.g. onRollbackComplete() in this file) does not check it. Change-Id: I2be05ae182c3fd5d90b87e9579f8c2aa6b79c655
This commit is contained in:
parent
906146ac79
commit
43747e5b0b
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue