]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
subscribers list wasn't firing correct events
authorEvan Prodromou <evan@status.net>
Wed, 3 Mar 2010 20:09:07 +0000 (15:09 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 3 Mar 2010 20:09:07 +0000 (15:09 -0500)
actions/subscribers.php

index cd3e2ee5bedd136190ddea88971c526345c98b73..4bced62840dcda4f3f8a28d591583b901729ccc1 100644 (file)
@@ -143,9 +143,12 @@ class SubscribersListItem extends SubscriptionListItem
     function showActions()
     {
         $this->startActions();
-        $this->showSubscribeButton();
-        // Relevant code!
-        $this->showBlockForm();
+        if (Event::handle('StartProfileListItemActionElements', array($this))) {
+            $this->showSubscribeButton();
+            // Relevant code!
+            $this->showBlockForm();
+            Event::handle('EndProfileListItemActionElements', array($this));
+        }
         $this->endActions();
     }