Commit e07b2545 authored by ludovic's avatar ludovic
Browse files

Update MailCapture.php

ConfigPath added
parent 45706d4f
......@@ -179,7 +179,8 @@ class MailCapture
$folder=false,
$attachmentsOutputDir=false,
$addHeaderInMailContent=true,
$folderError=false
$folderError=false,
$configPath = __DIR__
) {
if (empty($folder) || $folder == 'false') {
$folder=false;
......@@ -210,7 +211,7 @@ class MailCapture
$Config = new DOMDocument();
echo 'LOAD ' . $configFile . ' FOR CAPTURE' . PHP_EOL;
$Config->load(
__DIR__ . DIRECTORY_SEPARATOR . $configFile
$configPath . DIRECTORY_SEPARATOR . $configFile
);
parent::__construct($Config);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment