]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
move notice form to content block
authorEvan Prodromou <evan@status.net>
Thu, 3 Mar 2011 03:09:11 +0000 (22:09 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 3 Mar 2011 03:09:11 +0000 (22:09 -0500)
lib/action.php

index 5917d31b36bcf063f61e92ae4e2aa0e9032208b7..dc95b030d2b2d97ab79401dcafce19aa37dd4a5a 100644 (file)
@@ -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));