From 001e536e85c23caf74dd3b88cec1c2984320acb3 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 5 Sep 2013 17:45:55 +0200 Subject: Upgraded depracated function calls. --- disablechat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'disablechat.php') diff --git a/disablechat.php b/disablechat.php index 38a440cf2..490fb327b 100644 --- a/disablechat.php +++ b/disablechat.php @@ -1,7 +1,7 @@ chatenabled = false; + if (elgg_is_logged_in()) { + elgg_get_logged_in_user_entity()->chatenabled = false; system_message(elgg_echo("beechat:disabled")); } forward($_SERVER['HTTP_REFERER']); -- cgit v1.2.3