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:
Michael Kaufmann (d00p)
2013-09-21 13:10:04 +02:00
parent b894e273c7
commit fea16cd108
4 changed files with 40 additions and 6 deletions

View File

@@ -48,6 +48,8 @@ function __autoload($classname)
findIncludeClass($libdirname . '/classes/', $classname);
}
spl_autoload_register('__autoload');
function findIncludeClass($dirname, $classname)
{
$dirhandle = opendir($dirname);