summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 2476f19fa..e9f117afc 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -222,7 +222,10 @@ class ShowstreamAction extends ProfileAction
? $this->user->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1)
: $this->user->getTaggedNotices($this->tag, ($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1, 0, 0, null);
- $pnl = new ProfileNoticeList($notice, $this);
+ $pnl = null;
+ if (Event::handle('ShowStreamNoticeList', array($notice, $this, &$pnl))) {
+ $pnl = new ProfileNoticeList($notice, $this);
+ }
$cnt = $pnl->show();
if (0 == $cnt) {
$this->showEmptyListMessage();