Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -399,14 +399,17 @@ |
400 | 400 | $title = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $this->mId ); |
401 | 401 | $title->setFragment( "#c{$commentId}" ); |
402 | 402 | $url = $title->getFullUrl(); |
| 403 | + |
403 | 404 | foreach ( $users as $userId => $user ) { |
404 | 405 | // No sense in notifying this commenter |
405 | 406 | if ( $wgUser->getId() == $user->getId() ) { |
406 | 407 | continue; |
407 | 408 | } |
408 | | - // Send message in receiver's language |
409 | | - $lang = array( 'language' => $user->getOption( 'language' ) ); |
| 409 | + |
410 | 410 | if ( $user->canReceiveEmail() ) { |
| 411 | + // Send message in receiver's language |
| 412 | + $lang = array( 'language' => $user->getOption( 'language' ) ); |
| 413 | + |
411 | 414 | $user->sendMail( |
412 | 415 | wfMsgExt( 'codereview-email-subj', $lang, $this->mRepo->getName(), $this->getIdString() ), |
413 | 416 | wfMsgExt( 'codereview-email-body', $lang, $wgUser->getName(), $url, $this->getIdStringUnique(), $text ) |