MarkAHershberger has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/376160 )
Change subject: EmailNotification should provide a getter for pageStatus
......................................................................
EmailNotification should provide a getter for pageStatus
This will allow extensions to confirm that they are actually handling
the right notification when they hook into
SendWatchlistEmailNotification.
Bug: T175104
Change-Id: I2beb5b3576f2cd739dab16b9adf613c96636edd3
---
M includes/mail/EmailNotification.php
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/60/376160/1
diff --git a/includes/mail/EmailNotification.php
b/includes/mail/EmailNotification.php
index 2931d9d..44ef615 100644
--- a/includes/mail/EmailNotification.php
+++ b/includes/mail/EmailNotification.php
@@ -76,6 +76,16 @@
protected $editor;
/**
+ * Getter for the protected property, so extensions can use
+ * SendWatchlistEmailNotification to handle their own
+ * notifications if they want to.
+ * @return string
+ */
+ public function getPageStatus() {
+ return $this->pageStatus;
+ }
+
+ /**
* @deprecated since 1.27 use
WatchedItemStore::updateNotificationTimestamp directly
*
* @param User $editor The editor that triggered the update. Their
notification
--
To view, visit https://gerrit.wikimedia.org/r/376160
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2beb5b3576f2cd739dab16b9adf613c96636edd3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: MarkAHershberger <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits