We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c79bad06 authored by Robin Millette's avatar Robin Millette

fixed filler/guide text on personal timeline to take memcached into account.

parent 50b32227
......@@ -75,13 +75,8 @@ class AllAction extends ProfileAction
$nav->show();
}
function showPageNotice()
function showEmptyListMessage()
{
$notice = $this->user->noticesWithFriends(0, 1);
if ($notice->count()) {
return;
}
$message = sprintf(_('This is the timeline for %s and friends but no one has posted anything yet.'), $this->user->nickname) . ' ';
if (common_logged_in()) {
......@@ -109,6 +104,10 @@ class AllAction extends ProfileAction
$cnt = $nl->show();
if (0 == $cnt) {
$this->showEmptyListMessage();
}
$this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
$this->page, 'all', array('nickname' => $this->user->nickname));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment