summaryrefslogtreecommitdiff
path: root/actions/shownotice.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/shownotice.php')
-rw-r--r--actions/shownotice.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php
index 86df5f9f3..c8e9cfe66 100644
--- a/actions/shownotice.php
+++ b/actions/shownotice.php
@@ -314,10 +314,14 @@ class SingleNoticeItem extends NoticeListItem
function show()
{
$this->showStart();
- $this->showNotice();
- $this->showNoticeAttachments();
- $this->showNoticeInfo();
- $this->showNoticeOptions();
+ if (Event::handle('StartShowNoticeItem', array($this))) {
+ $this->showNotice();
+ $this->showNoticeAttachments();
+ $this->showNoticeInfo();
+ $this->showNoticeOptions();
+ Event::handle('EndShowNoticeItem', array($this));
+ }
+
$this->showEnd();
}