diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/beechat/beechat.php | 2 | ||||
-rw-r--r-- | views/default/beechat/beechat.userjs.php | 2 | ||||
-rwxr-xr-x | views/default/settings/beechat/edit.php | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/views/default/beechat/beechat.php b/views/default/beechat/beechat.php index d1e9e17be..397d35f74 100644 --- a/views/default/beechat/beechat.php +++ b/views/default/beechat/beechat.php @@ -9,7 +9,7 @@ * @link http://beechannels.com/ */ -if (isloggedin() && get_loggedin_user()->chatenabled && elgg_get_context() != 'admin') { +if (elgg_is_logged_in() && elgg_get_logged_in_user_entity()->chatenabled && elgg_get_context() != 'admin') { ?> <div id="beechat"> <div id="beechat_left"> diff --git a/views/default/beechat/beechat.userjs.php b/views/default/beechat/beechat.userjs.php index 1a4d1565c..ed59b683f 100644 --- a/views/default/beechat/beechat.userjs.php +++ b/views/default/beechat/beechat.userjs.php @@ -46,7 +46,7 @@ if (elgg_is_logged_in()) { 'limit' => 0)); if (!empty($chatrooms)) { foreach($chatrooms as $chatroom) { - echo "g_user_rooms.push(['".beechat_friendly_title($chatroom->name)."@".get_plugin_setting("groupdomain", "beechat")."', '".$chatroom->guid."']);"; + echo "g_user_rooms.push(['".beechat_friendly_title($chatroom->name)."@".elgg_get_plugin_setting("groupdomain", "beechat")."', '".$chatroom->guid."']);"; } } } diff --git a/views/default/settings/beechat/edit.php b/views/default/settings/beechat/edit.php index 24dcd4e25..ec4ab08de 100755 --- a/views/default/settings/beechat/edit.php +++ b/views/default/settings/beechat/edit.php @@ -3,13 +3,13 @@ * Barter Plugin * @package Barters **/ - $domain = get_plugin_setting("domain", "beechat"); - //$group_domain = get_plugin_setting("groupdomain", "beechat"); - $xmlrpc_ip = get_plugin_setting("xmlrpcip", "beechat"); - $dbname = get_plugin_setting("dbname", "beechat"); - $dbhost = get_plugin_setting("dbhost", "beechat"); - $dbuser = get_plugin_setting("dbuser", "beechat"); - $dbpassword = get_plugin_setting("dbpassword", "beechat"); + $domain = elgg_get_plugin_setting("domain", "beechat"); + //$group_domain = elgg_get_plugin_setting("groupdomain", "beechat"); + $xmlrpc_ip = elgg_get_plugin_setting("xmlrpcip", "beechat"); + $dbname = elgg_get_plugin_setting("dbname", "beechat"); + $dbhost = elgg_get_plugin_setting("dbhost", "beechat"); + $dbuser = elgg_get_plugin_setting("dbuser", "beechat"); + $dbpassword = elgg_get_plugin_setting("dbpassword", "beechat"); ?> <p> <?php echo elgg_echo('beechat:domain'); ?> |