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:
@@ -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']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user