1
0
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:
Cameron
2014-11-15 13:29:37 -08:00
parent ca416467ba
commit 1734880bbb
5 changed files with 45 additions and 24 deletions

View File

@@ -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!');
}
}