Skip to content

Commit

Permalink
Don't load the autoloader automatically - not a class' job!
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Aug 25, 2014
1 parent a7d3e83 commit 2b7da56
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions class.phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,6 @@ class PHPMailer
public function __construct($exceptions = false)
{
$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';
}
}
}

/**
Expand Down

0 comments on commit 2b7da56

Please sign in to comment.