0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 18:03:04 +02:00

Don't load the autoloader automatically - not a class' job!

This commit is contained in:
Synchro 2014-08-25 20:31:37 +02:00
parent a7d3e83b6d
commit 2b7da567bc

View File

@ -576,13 +576,6 @@ class PHPMailer
public function __construct($exceptions = false) public function __construct($exceptions = false)
{ {
$this->exceptions = ($exceptions == true); $this->exceptions = ($exceptions == true);
//Make sure our autoloader is loaded
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
$autoload = spl_autoload_functions();
if ($autoload === false or !in_array('PHPMailerAutoload', $autoload)) {
require 'PHPMailerAutoload.php';
}
}
} }
/** /**