diff --git a/lib/noticelistitem.php b/lib/noticelistitem.php index a8506aa46e..ef7fc0d1e6 100644 --- a/lib/noticelistitem.php +++ b/lib/noticelistitem.php @@ -720,4 +720,17 @@ class NoticeListItem extends Widget Event::handle('EndCloseNoticeListItemElement', array($this)); } } + + /** + * Get the notice in question + * + * For hooks, etc., this may be useful + * + * @return Notice The notice we're showing + */ + + function getNotice() + { + return $this->notice; + } }