From 9d9e3117c7f7e91bc6580fc9f8788b37e540ff34 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Tue, 5 Sep 2017 20:42:21 -0400 Subject: [PATCH] EmailNotification should provide a getter for pageStatus 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 notifications handling their pageStatus indicator. This allows them to fetch the protected property. Bug: T175104 Change-Id: I2beb5b3576f2cd739dab16b9adf613c96636edd3 --- includes/mail/EmailNotification.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index 739dbec035..8a089f6930 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -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 * -- 2.20.1