summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-03 15:09:07 -0500
committerEvan Prodromou <evan@status.net>2010-03-03 15:09:07 -0500
commitc82efb7fd8ba28b854020821246878fc0a8cec2b (patch)
tree4524416cc7a7c95a99dc2a93344433338603756d /actions
parentccd0db1e0a928fe914c894966ecf2260964a68f0 (diff)
subscribers list wasn't firing correct events
Diffstat (limited to 'actions')
-rw-r--r--actions/subscribers.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/actions/subscribers.php b/actions/subscribers.php
index cd3e2ee5b..4bced6284 100644
--- a/actions/subscribers.php
+++ b/actions/subscribers.php
@@ -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();
}