]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a hook for the page notice
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 15 May 2009 21:11:28 +0000 (17:11 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 15 May 2009 21:11:28 +0000 (17:11 -0400)
lib/action.php

index 4bd41c2266776bb631aa78c10360f166bc007e31..6b130b6d553484e0be8d7e790e9706303b8bfac8 100644 (file)
@@ -591,7 +591,10 @@ class Action extends HTMLOutputter // lawsuit
                                         'class' => 'system_notice'));
         $this->element('dt', null, _('Page notice'));
         $this->elementStart('dd');
-        $this->showPageNotice();
+        if (Event::handle('StartShowPageNotice', array($this))) {
+            $this->showPageNotice();
+            Event::handle('EndShowPageNotice', array($this));
+        }
         $this->elementEnd('dd');
         $this->elementEnd('dl');
     }