mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +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
|
// see if a WireMail module is specified in $config
|
||||||
if(isset($settings['module'])) {
|
if(isset($settings['module'])) {
|
||||||
|
if($settings['module'] === 'WireMail') {
|
||||||
|
$mail = $this->wire(new WireMail());
|
||||||
|
} else {
|
||||||
$mail = $modules->get($settings['module']);
|
$mail = $modules->get($settings['module']);
|
||||||
|
}
|
||||||
unset($settings['module']);
|
unset($settings['module']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user