aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-09-05 17:45:55 +0200
committerSem <sembrestels@riseup.net>2013-09-05 17:45:55 +0200
commit001e536e85c23caf74dd3b88cec1c2984320acb3 (patch)
treeaec2cbcbb89162f9a46ba985e5de08f77de76991 /lib
parent22479294531da254c0b9060afd5e2992c6db91e1 (diff)
downloadelgg-001e536e85c23caf74dd3b88cec1c2984320acb3.tar.gz
elgg-001e536e85c23caf74dd3b88cec1c2984320acb3.tar.bz2
Upgraded depracated function calls.
Diffstat (limited to 'lib')
-rw-r--r--lib/beechat.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/beechat.php b/lib/beechat.php
index a7db64052..bf002d648 100644
--- a/lib/beechat.php
+++ b/lib/beechat.php
@@ -35,7 +35,7 @@ function ejabberd_xmlrpc_send($request)
'content' => $request
)));
- $file = file_get_contents("http://".get_plugin_setting("xmlrpcip", "beechat").":4560/RPC2", false, $context);
+ $file = file_get_contents("http://".elgg_get_plugin_setting("xmlrpcip", "beechat").":4560/RPC2", false, $context);
$response = xmlrpc_decode($file);
if (is_array($response) && xmlrpc_is_fault($response)) {
@@ -73,8 +73,8 @@ class EjabberdMucRoom {
}
function setOption($name, $value) {
$group = $this->group;
- $param=array("name"=>friendly_title($group->name),
- "service"=>get_plugin_setting("groupdomain", "beechat"),
+ $param=array("name"=>elgg_get_friendly_title($group->name),
+ "service"=>elgg_get_plugin_setting("groupdomain", "beechat"),
"option"=>$name,
"value"=>$value);
ejabberd_xmlrpc_command('muc_room_change_option', $param);
@@ -93,9 +93,9 @@ class EjabberdMucRoom {
function setAffiliation($member, $affiliation) {
$group = $this->group;
- $param = array("name" => friendly_title($group->name),
- "service" => get_plugin_setting("groupdomain", "beechat"),
- "jid" => xmpp_escape($member->username) . '@' . get_plugin_setting("domain", "beechat"),
+ $param = array("name" => elgg_get_friendly_title($group->name),
+ "service" => elgg_get_plugin_setting("groupdomain", "beechat"),
+ "jid" => xmpp_escape($member->username) . '@' . elgg_get_plugin_setting("domain", "beechat"),
"affiliation" => $affiliation);
ejabberd_xmlrpc_command('muc_room_set_affiliation', $param);
//echo "set affiliation ".$member->username."<br/>";
@@ -106,9 +106,9 @@ function ejabberd_create_group($group)
{
//echo "creating " . $group->name . "<br/>";
// create room
- $param=array("name"=>friendly_title($group->name),
- "service"=>get_plugin_setting("groupdomain", "beechat"),
- "server"=>get_plugin_setting("domain", "beechat"));
+ $param=array("name"=>elgg_get_friendly_title($group->name),
+ "service"=>elgg_get_plugin_setting("groupdomain", "beechat"),
+ "server"=>elgg_get_plugin_setting("domain", "beechat"));
ejabberd_xmlrpc_command('create_muc_room', $param);
// persistency
@@ -140,9 +140,9 @@ function ejabberd_create_group($group)
function ejabberd_destroy_group($group)
{
- $param=array("name"=>friendly_title($group->name),
- "service"=>get_plugin_setting("groupdomain", "beechat"),
- "server"=>get_plugin_setting("domain", "beechat"));
+ $param=array("name"=>elgg_get_friendly_title($group->name),
+ "service"=>elgg_get_plugin_setting("groupdomain", "beechat"),
+ "server"=>elgg_get_plugin_setting("domain", "beechat"));
ejabberd_xmlrpc_command('delete_muc_room', $param);
}
@@ -172,7 +172,7 @@ function ejabberd_getjid($user, $do_external=false)
}
else {
$username = $user->username;
- $host = get_plugin_setting("domain", "beechat");
+ $host = elgg_get_plugin_setting("domain", "beechat");
}
return xmpp_escape($username) . '@' . $host;
}
@@ -184,8 +184,8 @@ function ejabberd_friend_command($user, $friend, $command, $is_out) // $user add
error_log(" * beechat: friend is foreign!");
return;
}
- $param = array("user" => friendly_title($friend->username),
- "server" => get_plugin_setting("domain", "beechat"),
+ $param = array("user" => elgg_get_friendly_title($friend->username),
+ "server" => elgg_get_plugin_setting("domain", "beechat"),
"from" => ejabberd_getjid($user),
"subs" => $command);
if ($is_out) {