X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fmail%2FUserMailer.php;h=fb0f2f99f06eb24149c84b665b10e3dae250be5a;hp=1f8489f7e3d47b0076e71aa3c40470778f91034c;hb=ee56f00ddf0609082f8ae9a4dc3e6e1b6f54ddfd;hpb=244e29b2c9e0b68c1fcbaab2f20364860d9c58ff diff --git a/includes/mail/UserMailer.php b/includes/mail/UserMailer.php index 1f8489f7e3..fb0f2f99f0 100644 --- a/includes/mail/UserMailer.php +++ b/includes/mail/UserMailer.php @@ -102,7 +102,7 @@ class UserMailer { * @param MailAddress $from Sender's email * @param string $subject Email's subject. * @param string $body Email's text or Array of two strings to be the text and html bodies - * @param array $options: + * @param array $options Keys: * 'replyTo' MailAddress * 'contentType' string default 'text/plain; charset=UTF-8' * 'headers' array Extra headers to set @@ -196,7 +196,7 @@ class UserMailer { * @param MailAddress $from Sender's email * @param string $subject Email's subject. * @param string $body Email's text or Array of two strings to be the text and html bodies - * @param array $options: + * @param array $options Keys: * 'replyTo' MailAddress * 'contentType' string default 'text/plain; charset=UTF-8' * 'headers' array Extra headers to set @@ -360,13 +360,13 @@ class UserMailer { require_once 'Mail.php'; } - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); // Create the mail object using the Mail::factory method $mail_object =& Mail::factory( 'smtp', $wgSMTP ); if ( PEAR::isError( $mail_object ) ) { wfDebug( "PEAR::Mail factory failed: " . $mail_object->getMessage() . "\n" ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); return Status::newFatal( 'pear-mail-error', $mail_object->getMessage() ); } @@ -386,11 +386,11 @@ class UserMailer { $status = self::sendWithPear( $mail_object, $chunk, $headers, $body ); // FIXME : some chunks might be sent while others are not! if ( !$status->isOK() ) { - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); return $status; } } - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); return Status::newGood(); } else { // PHP mail()