aboutsummaryrefslogtreecommitdiff
path: root/enablechat.php
diff options
context:
space:
mode:
Diffstat (limited to 'enablechat.php')
-rw-r--r--enablechat.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/enablechat.php b/enablechat.php
index f3449520c..5d3de7e2a 100644
--- a/enablechat.php
+++ b/enablechat.php
@@ -1,7 +1,7 @@
<?php
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
- if (isloggedin()) {
- get_loggedin_user()->chatenabled = true;
+ if (elgg_is_logged_in()) {
+ elgg_get_logged_in_user_entity()->chatenabled = true;
system_message(elgg_echo("beechat:enabled"));
}
forward($_SERVER['HTTP_REFERER']);