Let's just put the namespaced phpseclib in extlib instead of plugins/OStatus/extlib
This commit is contained in:
parent
d4216d09c6
commit
47aabf4fda
@ -28,8 +28,6 @@
|
||||
|
||||
if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/extlib/phpseclib');
|
||||
|
||||
class OStatusPlugin extends Plugin
|
||||
{
|
||||
/**
|
||||
@ -83,18 +81,6 @@ class OStatusPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
public function onAutoload($cls)
|
||||
{
|
||||
if (mb_substr($cls, 0, 10) === 'phpseclib\\') {
|
||||
// These are saved under extlib/phpseclib with \ as /,
|
||||
// phpseclib has already been added to our include_path
|
||||
require_once str_replace('\\', '/', str_replace('phpseclib\\', '', $cls) . '.php');
|
||||
return false;
|
||||
}
|
||||
|
||||
return parent::onAutoload($cls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up queue handlers for outgoing hub pushes
|
||||
* @param QueueManager $qm
|
||||
|
Loading…
Reference in New Issue
Block a user