]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/tag.php
Misc small fixes, plus a new hook in tag.php
[quix0rs-gnu-social.git] / actions / tag.php
index ee9617b662cd1d4185a00c2c6f142e511ff94042..72668a0c919f4a625bf096b7ba680eff789952a4 100644 (file)
@@ -102,12 +102,17 @@ class TagAction extends Action
 
     function showContent()
     {
-        $nl = new NoticeList($this->notice, $this);
+        if(Event::handle('StartTagShowContent', array($this))) {
+            
+            $nl = new NoticeList($this->notice, $this);
 
-        $cnt = $nl->show();
+            $cnt = $nl->show();
 
-        $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
-                          $this->page, 'tag', array('tag' => $this->tag));
+            $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
+                              $this->page, 'tag', array('tag' => $this->tag));
+
+            Event::handle('EndTagShowContent', array($this))
+        }
     }
 
     function isReadOnly($args)