forked from GNUsocial/gnu-social
Use addPlugin! (esp. XMPP folks should do this)
If you're using XMPP by setting $config['xmpp'][*] then you should do: addPlugin('Xmpp', $config['xmpp']); because setting it directly in $config[''] won't do anything. Also, default resource for XMPP is now 'gnusocial'. If you want something more random, set it in your addPlugin config array.
This commit is contained in:
@@ -379,33 +379,6 @@ class StatusNet
|
||||
$config_files);
|
||||
}
|
||||
|
||||
// Backwards compatibility
|
||||
if (array_key_exists('memcached', $config)) {
|
||||
if ($config['memcached']['enabled']) {
|
||||
addPlugin('Memcache', array('servers' => $config['memcached']['server']));
|
||||
}
|
||||
|
||||
if (!empty($config['memcached']['base'])) {
|
||||
$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']
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
// Check for database server; must exist!
|
||||
|
||||
if (empty($config['db']['database'])) {
|
||||
|
Reference in New Issue
Block a user