diff options
Diffstat (limited to 'mod/messages/views/default')
-rw-r--r-- | mod/messages/views/default/messages/topbar.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/messages/views/default/messages/topbar.php b/mod/messages/views/default/messages/topbar.php index 20c2f4396..b859b3aee 100644 --- a/mod/messages/views/default/messages/topbar.php +++ b/mod/messages/views/default/messages/topbar.php @@ -5,7 +5,7 @@ * @package ElggMessages */ -if (!isloggedin()) { +if (!elgg_is_logged_in()) { return true; } @@ -20,7 +20,7 @@ if ($num_messages != 0) { } echo elgg_view('output/url', array( - 'href' => 'pg/messages/inbox/' . get_loggedin_user()->username, + 'href' => 'pg/messages/inbox/' . elgg_get_logged_in_user_entity()->username, 'text' => $text, 'class' => $class, )); |