1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 08:44:46 +02:00

Support option of forcing use of core WireMail even when other WireMail modules installed (primarily for testing/debugging purposes)

This commit is contained in:
Ryan Cramer
2018-06-28 12:42:03 -04:00
parent bd325ba123
commit 8ef358eac7

View File

@@ -54,7 +54,11 @@ class WireMailTools extends Wire {
// see if a WireMail module is specified in $config
if(isset($settings['module'])) {
$mail = $modules->get($settings['module']);
if($settings['module'] === 'WireMail') {
$mail = $this->wire(new WireMail());
} else {
$mail = $modules->get($settings['module']);
}
unset($settings['module']);
}