From def1cb28451f9a8762b442c57112517dee1f2031 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 3 Oct 2007 21:13:02 +0000 Subject: [PATCH] Fix for regression from r26357: send newtalk notifications only if user has that pref selected --- includes/UserMailer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 5a44ef29bd..cd15e3a0dd 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -348,9 +348,12 @@ class EmailNotification { wfDebug( __METHOD__.": user talk page edited, but user does not exist\n" ); } elseif ( $targetUser->getId() == $editor->getId() ) { wfDebug( __METHOD__.": user edited their own talk page, no notification sent\n" ); - } else { + } elseif( $targetUser->getOption( 'enotifusertalkpages' ) ) { + wfDebug( __METHOD__.": sending talk page update notification\n" ); $this->compose( $targetUser ); $userTalkId = $targetUser->getId(); + } else { + wfDebug( __METHOD__.": talk page owner doesn't want notifications\n" ); } } -- 2.20.1