diff options
author | Sem <sembrestels@riseup.net> | 2013-09-05 17:45:55 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-09-05 17:45:55 +0200 |
commit | 001e536e85c23caf74dd3b88cec1c2984320acb3 (patch) | |
tree | aec2cbcbb89162f9a46ba985e5de08f77de76991 /enablechat.php | |
parent | 22479294531da254c0b9060afd5e2992c6db91e1 (diff) | |
download | elgg-001e536e85c23caf74dd3b88cec1c2984320acb3.tar.gz elgg-001e536e85c23caf74dd3b88cec1c2984320acb3.tar.bz2 |
Upgraded depracated function calls.
Diffstat (limited to 'enablechat.php')
-rw-r--r-- | enablechat.php | 4 |
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']); |