Check supposed revision being reverted is on the same page

Bug: 57474
Change-Id: Idec054930dd20a01ec9d5132cce25378914629fc
This commit is contained in:
Kunal Mehta 2013-11-22 22:20:45 -08:00
parent b487bb5c86
commit 6ee8570c80

View file

@ -462,7 +462,7 @@ class EchoHooks {
$undidRevId = $wgRequest->getVal( 'wpUndidRevision' );
if ( $undidRevId ) {
$undidRevision = Revision::newFromId( $undidRevId );
if ( $undidRevision ) {
if ( $undidRevision && $undidRevision->getTitle()->equals( $title ) ) {
$victimId = $undidRevision->getUser();
if ( $victimId ) { // No notifications for anonymous users
EchoEvent::create( array(