]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change host to port
authorEvan Prodromou <evan@prodromou.name>
Mon, 23 Jun 2008 03:09:30 +0000 (23:09 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 23 Jun 2008 03:09:30 +0000 (23:09 -0400)
darcs-hash:20080623030930-84dde-9bfebd8ecec06f985fdb2a79536c652391855d13.gz

xmppdaemon.php

index e11e5f5ad6fb628deb7231cc3fc5724d4cd9c346..eab79a0314ceeaf7873e20cc8d26c37daeec3026 100644 (file)
@@ -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;