From: Evan Prodromou Date: Thu, 3 Mar 2011 03:09:11 +0000 (-0500) Subject: move notice form to content block X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53db4c2b85b27db85c8d29f059fe893f5c0b3745;p=quix0rs-gnu-social.git move notice form to content block --- 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));