Fix PHPMailer autoload path
- Korrigiert den Autoload-Pfad fuer PHPMailer im vendor/autoload.php
This commit is contained in:
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@@ -9,7 +9,7 @@ spl_autoload_register(function ($class) {
|
|||||||
if (strpos($class, 'PHPMailer\\PHPMailer\\') === 0) {
|
if (strpos($class, 'PHPMailer\\PHPMailer\\') === 0) {
|
||||||
// Namespace in Dateipfad umwandeln
|
// Namespace in Dateipfad umwandeln
|
||||||
$classPath = str_replace('PHPMailer\\PHPMailer\\', '', $class);
|
$classPath = str_replace('PHPMailer\\PHPMailer\\', '', $class);
|
||||||
$file = __DIR__ . '/vendor/phpmailer/phpmailer/src/' . $classPath . '.php';
|
$file = __DIR__ . '/phpmailer/phpmailer/src/' . $classPath . '.php';
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
require $file;
|
require $file;
|
||||||
|
|||||||
Reference in New Issue
Block a user