forked from GNUsocial/gnu-social
Merge branch '0.9.x' into 1.0.x
Conflicts: EVENTS.txt db/statusnet.sql lib/queuemanager.php
This commit is contained in:
@@ -34,6 +34,8 @@ if (!defined('STATUSNET')) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . INSTALLDIR . '/extlib/XMPPHP');
|
||||
|
||||
/**
|
||||
* Plugin for XMPP
|
||||
*
|
||||
@@ -106,12 +108,15 @@ class XmppPlugin extends ImPlugin
|
||||
|
||||
switch ($cls)
|
||||
{
|
||||
case 'XMPPHP_XMPP':
|
||||
require_once 'XMPP.php';
|
||||
return false;
|
||||
case 'Sharing_XMPP':
|
||||
case 'Fake_XMPP':
|
||||
include_once $dir . '/'.$cls.'.php';
|
||||
require_once $dir . '/'.$cls.'.php';
|
||||
return false;
|
||||
case 'XmppManager':
|
||||
include_once $dir . '/'.strtolower($cls).'.php';
|
||||
require_once $dir . '/'.strtolower($cls).'.php';
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user