Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -348,9 +348,12 @@ |
349 | 349 | wfDebug( __METHOD__.": user talk page edited, but user does not exist\n" ); |
350 | 350 | } elseif ( $targetUser->getId() == $editor->getId() ) { |
351 | 351 | wfDebug( __METHOD__.": user edited their own talk page, no notification sent\n" ); |
352 | | - } else { |
| 352 | + } elseif( $targetUser->getOption( 'enotifusertalkpages' ) ) { |
| 353 | + wfDebug( __METHOD__.": sending talk page update notification\n" ); |
353 | 354 | $this->compose( $targetUser ); |
354 | 355 | $userTalkId = $targetUser->getId(); |
| 356 | + } else { |
| 357 | + wfDebug( __METHOD__.": talk page owner doesn't want notifications\n" ); |
355 | 358 | } |
356 | 359 | } |
357 | 360 | |