From: Sarven Capadisli Date: Wed, 3 Mar 2010 21:25:17 +0000 (-0500) Subject: Fix to group join event position. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6ff994b14c93c51f1af1a52d568ffb3391d9c6db;p=quix0rs-gnu-social.git Fix to group join event position. --- diff --git a/actions/showgroup.php b/actions/showgroup.php index a1dc3865bd..5704b13d14 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -300,8 +300,8 @@ class ShowgroupAction extends GroupDesignAction $this->elementStart('div', 'entity_actions'); $this->element('h2', null, _('Group actions')); $this->elementStart('ul'); + $this->elementStart('li', 'entity_subscribe'); if (Event::handle('StartGroupSubscribe', array($this, $this->group))) { - $this->elementStart('li', 'entity_subscribe'); $cur = common_current_user(); if ($cur) { if ($cur->isMember($this->group)) { @@ -312,10 +312,9 @@ class ShowgroupAction extends GroupDesignAction $jf->show(); } } - $this->elementEnd('li'); Event::handle('EndGroupSubscribe', array($this, $this->group)); } - + $this->elementEnd('li'); $this->elementEnd('ul'); $this->elementEnd('div'); }