Let's just put the namespaced phpseclib in extlib instead of plugins/OStatus/extlib

This commit is contained in:
Mikael Nordfeldth 2016-06-18 00:00:32 +02:00
parent d4216d09c6
commit 47aabf4fda
39 changed files with 0 additions and 14 deletions

View File

@ -28,8 +28,6 @@
if (!defined('GNUSOCIAL')) { exit(1); } if (!defined('GNUSOCIAL')) { exit(1); }
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/extlib/phpseclib');
class OStatusPlugin extends Plugin class OStatusPlugin extends Plugin
{ {
/** /**
@ -83,18 +81,6 @@ class OStatusPlugin extends Plugin
return true; 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 * Set up queue handlers for outgoing hub pushes
* @param QueueManager $qm * @param QueueManager $qm