diff options
-rw-r--r-- | start.php | 2 | ||||
-rw-r--r-- | views/default/beechat/beechat.userjs.php | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -150,7 +150,7 @@ } } } - else*/if (get_context() == 'settings' && isloggedin()) { + else*/if (elgg_get_context() == 'settings' && elgg_is_logged_in()) { if (get_loggedin_user()->chatenabled) { add_submenu_item(elgg_echo('beechat:disablechat'), $CONFIG->wwwroot . "mod/beechat/disablechat.php"); } diff --git a/views/default/beechat/beechat.userjs.php b/views/default/beechat/beechat.userjs.php index f147d8b8e..1a4d1565c 100644 --- a/views/default/beechat/beechat.userjs.php +++ b/views/default/beechat/beechat.userjs.php @@ -38,8 +38,8 @@ BeeChat.UI.Resources.Strings = { } g_user_rooms = new Array(); <?php -if (isloggedin()) { - $user = get_loggedin_user(); +if (elgg_is_logged_in()) { + $user = elgg_get_logged_in_user_entity(); $chatrooms = elgg_get_entities_from_relationship(array('relationship' => 'groupchat', 'relationship_guid' => $user->guid, 'inverse_relationship' => false, |