diff options
author | Zach Copley <zach@status.net> | 2010-03-03 00:54:35 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-03 00:54:35 +0000 |
commit | 097e3f89b630b7a28f27c96f5e9a036df3ed7710 (patch) | |
tree | b34602a5fcd9cc9474737379ddafde3976c0cb96 /actions/all.php | |
parent | 6c1321b108206d05b75703da22ea8abab82071bf (diff) | |
parent | 08422dfa17a5c52d51f21087be0f1d8d602ed0af (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'actions/all.php')
-rw-r--r-- | actions/all.php | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/actions/all.php b/actions/all.php index 3eb185214..6be0c00e3 100644 --- a/actions/all.php +++ b/actions/all.php @@ -144,18 +144,22 @@ class AllAction extends ProfileAction function showContent() { - $nl = new NoticeList($this->notice, $this); + if (Event::handle('StartShowAllContent', array($this))) { + $nl = new NoticeList($this->notice, $this); - $cnt = $nl->show(); + $cnt = $nl->show(); - if (0 == $cnt) { - $this->showEmptyListMessage(); - } + if (0 == $cnt) { + $this->showEmptyListMessage(); + } - $this->pagination( - $this->page > 1, $cnt > NOTICES_PER_PAGE, - $this->page, 'all', array('nickname' => $this->user->nickname) - ); + $this->pagination( + $this->page > 1, $cnt > NOTICES_PER_PAGE, + $this->page, 'all', array('nickname' => $this->user->nickname) + ); + + Event::handle('EndShowAllContent', array($this)); + } } function showPageTitle() |