From 5d32291b12b91d4800590e593fedeb22e072f9a5 Mon Sep 17 00:00:00 2001 From: bsitu Date: Mon, 15 Apr 2013 13:34:24 -0700 Subject: [PATCH] Remove the code the tries to create an invalid notification Although invalid notification would be checked and not be created, it's better to get rid of any attempt of creating invalid notifications Change-Id: I4bdbf7e0706b3613c7cf31ab07570fb4d1cdd045 --- Hooks.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Hooks.php b/Hooks.php index a953f6337..399ed7364 100644 --- a/Hooks.php +++ b/Hooks.php @@ -397,13 +397,6 @@ class EchoHooks { public static function onArticleSaved( &$article, &$user, $text, $summary, $minoredit, $watchthis, $sectionanchor, &$flags, $revision, &$status ) { global $wgEchoNotifications, $wgRequest; if ( $revision ) { - EchoEvent::create( array( - 'type' => 'edit', - 'title' => $article->getTitle(), - 'extra' => array( 'revid' => $revision->getID() ), - 'agent' => $user, - ) ); - if ( $article->getTitle()->isTalkPage() ) { EchoDiscussionParser::generateEventsForRevision( $revision ); }