1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Fix issue processwire/processwire-issues#750 where WireShutdown email was missing a send() call

This commit is contained in:
Ryan Cramer
2018-11-30 13:21:33 -05:00
parent 9aa0de6351
commit 65b3edb761
2 changed files with 3 additions and 1 deletions

View File

@@ -126,6 +126,7 @@
*
* @property array $substituteModules Associative array with names of substitute modules for when requested module doesn't exist #pw-group-modules
* @property array $logs Additional core logs to keep #pw-group-admin
* @property bool $logIP Include IP address in logs, when applicable? #pw-group-admin
* @property string $defaultAdminTheme Default admin theme: AdminThemeDefault or AdminThemeReno #pw-group-admin
* @property string $fatalErrorHTML HTML used for fatal error messages in HTTP mode. #pw-group-system
* @property array $modals Settings for modal windows #pw-group-admin

View File

@@ -330,7 +330,8 @@ class WireShutdown extends Wire {
->to($config->adminEmail)
->from($config->adminEmail)
->subject($this->labels['email-subject'])
->body("Page: $url\nUser: $name\n\n" . str_replace("\t", "\n", $message));
->body("Page: $url\nUser: $name\n\n" . str_replace("\t", "\n", $message))
->send();
if($n) $who .= $this->labels['admin-notified'];
}