X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fmail%2FEmailNotification.php;h=8a089f69307dca4b72035145db22df66ded73efa;hb=5a68f2902d4e21bc76482c33344f473912768fec;hp=d32e93f8b3ae779bb190682ce1a78647030065e0;hpb=c27ea8dbd1ed4f5f2b52ca0e79aad117f74346e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index d32e93f8b3..8a089f6930 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -23,8 +23,8 @@ * @author Tim Starling * @author Luke Welling lwelling@wikimedia.org */ -use MediaWiki\Linker\LinkTarget; +use MediaWiki\Linker\LinkTarget; use MediaWiki\MediaWikiServices; /** @@ -75,6 +75,20 @@ class EmailNotification { */ protected $editor; + /** + * Extensions that have hooks for + * UpdateUserMailerFormattedPageStatus (to provide additional + * pageStatus indicators) need a way to make sure that, when their + * hook is called in SendWatchlistemailNotification, they only + * handle notifications using their pageStatus indicator. + * + * @since 1.33 + * @return string + */ + public function getPageStatus() { + return $this->pageStatus; + } + /** * @deprecated since 1.27 use WatchedItemStore::updateNotificationTimestamp directly * @@ -444,11 +458,12 @@ class EmailNotification { /** * Does the per-user customizations to a notification e-mail (name, * timestamp in proper timezone, etc) and sends it out. - * Returns true if the mail was sent successfully. + * Returns Status if email was sent successfully or not (Status::newGood() + * or Status::newFatal() respectively). * * @param User $watchingUser * @param string $source - * @return bool + * @return Status * @private */ function sendPersonalised( $watchingUser, $source ) {