register our own autoloader and add PHPMailerAutoload so we don't need to patch phpMailer on every update
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -48,6 +48,8 @@ function __autoload($classname)
|
||||
findIncludeClass($libdirname . '/classes/', $classname);
|
||||
}
|
||||
|
||||
spl_autoload_register('__autoload');
|
||||
|
||||
function findIncludeClass($dirname, $classname)
|
||||
{
|
||||
$dirhandle = opendir($dirname);
|
||||
|
||||
Reference in New Issue
Block a user