1
0
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:
Ryan Cramer
2016-09-30 05:12:47 -04:00
parent 2260d52140
commit 0cd0587778

View File

@@ -92,7 +92,7 @@ class WireShutdown extends Wire {
$debug = $config->debug;
$sendOutput = $config->allowExceptions !== true;
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);
wireMail($config->adminEmail, $config->adminEmail, $this->labels['email-subject'], $logMessage);
}