Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -297,7 +297,6 @@ |
298 | 298 | |
299 | 299 | 'AlternateUserMailer': Called before mail is sent so that mail could |
300 | 300 | be logged (or something else) instead of using PEAR or SMTP |
301 | | -$UserMailer: the EditPage object |
302 | 301 | $headers: Associative array of headers for the email |
303 | 302 | $to: MailAddress object or array |
304 | 303 | $from: From address |
Index: trunk/phase3/includes/UserMailer.php |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | $headers['X-Mailer'] = 'MediaWiki mailer'; |
194 | 194 | $headers['From'] = $from->toString(); |
195 | 195 | |
196 | | - $ret = wfRunHooks( 'AlternateUserMailer', array( $this, $headers, $to, $from, $subject, $body, $replyto, $contentType ) ); |
| 196 | + $ret = wfRunHooks( 'AlternateUserMailer', array( $headers, $to, $from, $subject, $body, $replyto, $contentType ) ); |
197 | 197 | if ( $ret === false ) { |
198 | 198 | return Status::newGood(); |
199 | 199 | } else if ( $ret != true ) { |