From a03831aa252829c751e8161feae512e609c4c465 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 29 Jul 2011 01:15:52 +0000 Subject: [PATCH] =?utf8?q?followup=20r93415=20=E2=80=94=20there=20is=20no?= =?utf8?q?=20=E2=80=9C$this=E2=80=9D=20in=20a=20static=20method.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docs/hooks.txt | 1 - includes/UserMailer.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index abe40a7b73..c74dbd8a1f 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -297,7 +297,6 @@ $EditPage: the EditPage object 'AlternateUserMailer': Called before mail is sent so that mail could be logged (or something else) instead of using PEAR or SMTP -$UserMailer: the EditPage object $headers: Associative array of headers for the email $to: MailAddress object or array $from: From address diff --git a/includes/UserMailer.php b/includes/UserMailer.php index d14b06e6d7..b3951aec16 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -192,7 +192,7 @@ class UserMailer { $headers['X-Mailer'] = 'MediaWiki mailer'; $headers['From'] = $from->toString(); - $ret = wfRunHooks( 'AlternateUserMailer', array( $this, $headers, $to, $from, $subject, $body, $replyto, $contentType ) ); + $ret = wfRunHooks( 'AlternateUserMailer', array( $headers, $to, $from, $subject, $body, $replyto, $contentType ) ); if ( $ret === false ) { return Status::newGood(); } else if ( $ret != true ) { -- 2.20.1