autoloading of Crypt_AES and Crypt_RSA is easier
This commit is contained in:
@@ -83,6 +83,20 @@ class OStatusPlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
public function onAutoload($cls)
|
||||
{
|
||||
switch ($cls) {
|
||||
case 'Crypt_AES':
|
||||
case 'Crypt_RSA':
|
||||
// Crypt_AES becomes Crypt/AES.php which is found in extlib/phpseclib/
|
||||
// which has been added to our include_path before
|
||||
require_once str_replace('_', '/', $cls) . '.php';
|
||||
return false;
|
||||
}
|
||||
|
||||
return parent::onAutoload($cls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up queue handlers for outgoing hub pushes
|
||||
* @param QueueManager $qm
|
||||
|
Reference in New Issue
Block a user