diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-04-14 23:03:31 +0000 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-04-14 23:03:31 +0000 |
commit | 533a463879e574f53fb84dd977e9d72a75023451 (patch) | |
tree | ac6caa220b15d50664beab5507e1a56b030839f2 /actions/public.php | |
parent | 20394664957a202cc86cc48ee2d115032e82c58a (diff) | |
parent | 9f2e2e4b2c1b428a1892c57c7194fbc5ede5b125 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions/public.php')
-rw-r--r-- | actions/public.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/actions/public.php b/actions/public.php index b7b7fc6b7..5a380de9a 100644 --- a/actions/public.php +++ b/actions/public.php @@ -166,19 +166,8 @@ class PublicAction extends Action $nav->show(); } - function showPageNotice() + function showEmptyList() { - $notice = new Notice; - - if (!$notice) { - $this->serverError(_('Could not retrieve public stream.')); - return; - } - - if ($notice->count()) { - return; - } - $message = _('This is the public timeline for %%site.name%% but no one has posted anything yet.') . ' '; if (common_logged_in()) { @@ -216,6 +205,10 @@ class PublicAction extends Action $cnt = $nl->show(); + if ($cnt == 0) { + $this->showEmptyList(); + } + $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE, $this->page, 'public'); } |