From fa45805d6d7f42884b507361ba51028c5180f384 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 7 Oct 2010 10:22:57 -0400 Subject: Events for showing the notice form --- lib/action.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/action.php b/lib/action.php index ddc058d41..008f29d03 100644 --- a/lib/action.php +++ b/lib/action.php @@ -397,7 +397,10 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowSiteNotice', array($this)); } if (common_logged_in()) { - $this->showNoticeForm(); + if (Event::handle('StartShowNoticeForm', array($this))) { + $this->showNoticeForm(); + Event::handle('EndShowNoticeForm', array($this)); + } } else { $this->showAnonymousMessage(); } -- cgit v1.2.3-54-g00ecf