]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add backwards compatibility for the XMPP configuration before XMPP was made into...
authorCraig Andrews <candrews@integralblue.com>
Thu, 28 Jan 2010 21:08:42 +0000 (16:08 -0500)
committerCraig Andrews <candrews@integralblue.com>
Thu, 28 Jan 2010 21:08:42 +0000 (16:08 -0500)
lib/statusnet.php

index beeb26cccdccb182777682be0b875d8c8035f2e1..2654ba5736ade358644a368534f48878f8eaf1bb 100644 (file)
@@ -274,7 +274,6 @@ class StatusNet
         }
 
         // Backwards compatibility
-
         if (array_key_exists('memcached', $config)) {
             if ($config['memcached']['enabled']) {
                 addPlugin('Memcache', array('servers' => $config['memcached']['server']));
@@ -284,6 +283,21 @@ class StatusNet
                 $config['cache']['base'] = $config['memcached']['base'];
             }
         }
+        if (array_key_exists('xmpp', $config)) {
+            if ($config['xmpp']['enabled']) {
+                addPlugin('xmpp', array(
+                    'server' => $config['xmpp']['server'],
+                    'port' => $config['xmpp']['port'],
+                    'user' => $config['xmpp']['user'],
+                    'resource' => $config['xmpp']['resource'],
+                    'encryption' => $config['xmpp']['encryption'],
+                    'password' => $config['xmpp']['password'],
+                    'host' => $config['xmpp']['host'],
+                    'debug' => $config['xmpp']['debug'],
+                    'public' => $config['xmpp']['public']
+                ));
+            }
+        }
     }
 }