forked from GNUsocial/gnu-social
Fix to group join event position.
This commit is contained in:
parent
5c70481d30
commit
6ff994b14c
@ -300,8 +300,8 @@ class ShowgroupAction extends GroupDesignAction
|
|||||||
$this->elementStart('div', 'entity_actions');
|
$this->elementStart('div', 'entity_actions');
|
||||||
$this->element('h2', null, _('Group actions'));
|
$this->element('h2', null, _('Group actions'));
|
||||||
$this->elementStart('ul');
|
$this->elementStart('ul');
|
||||||
|
$this->elementStart('li', 'entity_subscribe');
|
||||||
if (Event::handle('StartGroupSubscribe', array($this, $this->group))) {
|
if (Event::handle('StartGroupSubscribe', array($this, $this->group))) {
|
||||||
$this->elementStart('li', 'entity_subscribe');
|
|
||||||
$cur = common_current_user();
|
$cur = common_current_user();
|
||||||
if ($cur) {
|
if ($cur) {
|
||||||
if ($cur->isMember($this->group)) {
|
if ($cur->isMember($this->group)) {
|
||||||
@ -312,10 +312,9 @@ class ShowgroupAction extends GroupDesignAction
|
|||||||
$jf->show();
|
$jf->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->elementEnd('li');
|
|
||||||
Event::handle('EndGroupSubscribe', array($this, $this->group));
|
Event::handle('EndGroupSubscribe', array($this, $this->group));
|
||||||
}
|
}
|
||||||
|
$this->elementEnd('li');
|
||||||
$this->elementEnd('ul');
|
$this->elementEnd('ul');
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user