From: Mark A. Hershberger Date: Wed, 6 Sep 2017 00:42:21 +0000 (-0400) Subject: EmailNotification should provide a getter for pageStatus X-Git-Tag: 1.34.0-rc.0~3205 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=9d9e3117c7f7e91bc6580fc9f8788b37e540ff34;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 *