From 0cd058777814868c6c194f57581900728d77a558 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 30 Sep 2016 05:12:47 -0400 Subject: [PATCH] Fix issue #10 with exception emails not getting sent --- wire/core/WireShutdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/WireShutdown.php b/wire/core/WireShutdown.php index b9c41639..a8001897 100644 --- a/wire/core/WireShutdown.php +++ b/wire/core/WireShutdown.php @@ -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); }