From: Evan Prodromou Date: Mon, 23 Jun 2008 03:09:30 +0000 (-0400) Subject: change host to port X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b05ebcb272e64d59257133ebba876f9d9fdbdceb;p=quix0rs-gnu-social.git change host to port darcs-hash:20080623030930-84dde-9bfebd8ecec06f985fdb2a79536c652391855d13.gz --- diff --git a/xmppdaemon.php b/xmppdaemon.php index e11e5f5ad6..eab79a0314 100644 --- a/xmppdaemon.php +++ b/xmppdaemon.php @@ -32,13 +32,17 @@ require_once('xmpp.php'); class XMPPDaemon { function XMPPDaemon() { - foreach (array('server', 'port', 'user', 'password', 'resource') as $attr) { + static $attrs = array('server', 'port', 'user', 'password', + 'resource'); + + foreach ($attrs as $attr) + { $this->$attr = common_config('xmpp', $attr); } } function connect() { - $this->conn = new XMPP($this->host, $this->port, $this->user, + $this->conn = new XMPP($this->server, $this->port, $this->user, $this->password, $this->resource); if (!$this->conn) { return false;