From 53db4c2b85b27db85c8d29f059fe893f5c0b3745 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 2 Mar 2011 22:09:11 -0500 Subject: [PATCH] move notice form to content block --- lib/action.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/action.php b/lib/action.php index 5917d31b36..dc95b030d2 100644 --- a/lib/action.php +++ b/lib/action.php @@ -464,14 +464,7 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowSiteNotice', array($this)); } - if (common_logged_in()) { - if (Event::handle('StartShowNoticeForm', array($this))) { - $this->showNoticeForm(); - Event::handle('EndShowNoticeForm', array($this)); - } - } else { - $this->showAnonymousMessage(); - } + $this->elementEnd('div'); } @@ -679,6 +672,12 @@ class Action extends HTMLOutputter // lawsuit function showContentBlock() { $this->elementStart('div', array('id' => 'content')); + if (common_logged_in()) { + if (Event::handle('StartShowNoticeForm', array($this))) { + $this->showNoticeForm(); + Event::handle('EndShowNoticeForm', array($this)); + } + } if (Event::handle('StartShowPageTitle', array($this))) { $this->showPageTitle(); Event::handle('EndShowPageTitle', array($this)); -- 2.39.5