mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 21:02:09 +02:00
Corrected missing mail handlers preference. Added Debug-active warning. Enabling e_DEBUG in e107_config.php will now enable debug in the mailout class.
This commit is contained in:
@@ -218,6 +218,18 @@ class e107MailManager
|
||||
{
|
||||
$this->e107 = e107::getInstance();
|
||||
$this->mailOverrides = $overrides;
|
||||
|
||||
if(deftrue('e_DEBUG'))
|
||||
{
|
||||
$this->debugMode = true;
|
||||
}
|
||||
|
||||
if($this->debugMode === true)
|
||||
{
|
||||
e107::getMessage()->addWarning('Debug Mode is active. Emailing will only be simulated!');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user