Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -575,14 +575,14 @@ |
576 | 576 | } |
577 | 577 | |
578 | 578 | /** |
579 | | - * @param $subject |
580 | | - * @param $body |
| 579 | + * @param $subject String |
| 580 | + * @param $body String |
581 | 581 | * @return void |
582 | 582 | */ |
583 | 583 | public function emailNotifyUsersOfChanges( $subject, $body ) { |
584 | 584 | // Give email notices to committer and commenters |
585 | 585 | global $wgCodeReviewENotif, $wgEnableEmail, $wgCodeReviewCommentWatcherEmail, |
586 | | - $wgCodeReviewCommentWatcherName, $wgUser; |
| 586 | + $wgCodeReviewCommentWatcherName; |
587 | 587 | if ( !$wgCodeReviewENotif || !$wgEnableEmail ) { |
588 | 588 | return; |
589 | 589 | } |
— | — | @@ -613,7 +613,7 @@ |
614 | 614 | $lang = array( 'language' => $user->getOption( 'language' ) ); |
615 | 615 | |
616 | 616 | $localSubject = wfMsgExt( $subject, $lang, $this->repo->getName(), $this->getIdString() ); |
617 | | - $localBody = call_user_func_array( 'wfMsgExt', array_merge( array( $body, $lang, $wgUser->getName() ), $args ) ); |
| 617 | + $localBody = call_user_func_array( 'wfMsgExt', array_merge( array( $body, $lang ), $args ) ); |
618 | 618 | |
619 | 619 | $user->sendMail( $localSubject, $localBody ); |
620 | 620 | } |