From: Evan Prodromou Date: Wed, 3 Mar 2010 20:09:07 +0000 (-0500) Subject: subscribers list wasn't firing correct events X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c82efb7fd8ba28b854020821246878fc0a8cec2b;p=quix0rs-gnu-social.git subscribers list wasn't firing correct events --- diff --git a/actions/subscribers.php b/actions/subscribers.php index cd3e2ee5be..4bced62840 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(); }