forked from GNUsocial/gnu-social
Add Start/EndShowNoticeItem event hooks to single notice page
This commit is contained in:
parent
78a711d556
commit
ab1d8c4c56
@ -314,10 +314,14 @@ class SingleNoticeItem extends NoticeListItem
|
|||||||
function show()
|
function show()
|
||||||
{
|
{
|
||||||
$this->showStart();
|
$this->showStart();
|
||||||
|
if (Event::handle('StartShowNoticeItem', array($this))) {
|
||||||
$this->showNotice();
|
$this->showNotice();
|
||||||
$this->showNoticeAttachments();
|
$this->showNoticeAttachments();
|
||||||
$this->showNoticeInfo();
|
$this->showNoticeInfo();
|
||||||
$this->showNoticeOptions();
|
$this->showNoticeOptions();
|
||||||
|
Event::handle('EndShowNoticeItem', array($this));
|
||||||
|
}
|
||||||
|
|
||||||
$this->showEnd();
|
$this->showEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user