mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue #10 with exception emails not getting sent
This commit is contained in:
@@ -92,7 +92,7 @@ class WireShutdown extends Wire {
|
|||||||
$debug = $config->debug;
|
$debug = $config->debug;
|
||||||
$sendOutput = $config->allowExceptions !== true;
|
$sendOutput = $config->allowExceptions !== true;
|
||||||
if($config->ajax) $http = false;
|
if($config->ajax) $http = false;
|
||||||
if(function_exists("wireMail") && $config->adminEmail && $sendOutput) {
|
if((function_exists("\\ProcessWire\\wireMail") || function_exists("wireMail")) && $config->adminEmail && $sendOutput) {
|
||||||
$logMessage = "Page: $path\nUser: $userName\n\n" . str_replace("\t", "\n", $message);
|
$logMessage = "Page: $path\nUser: $userName\n\n" . str_replace("\t", "\n", $message);
|
||||||
wireMail($config->adminEmail, $config->adminEmail, $this->labels['email-subject'], $logMessage);
|
wireMail($config->adminEmail, $config->adminEmail, $this->labels['email-subject'], $logMessage);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user