Remove unused App paramter in securemail addon

This commit is contained in:
Artur Weigandt 2024-11-23 22:28:59 +01:00 committed by Hypolite Petovan
parent feb7722f72
commit 2ea40dc897

View file

@ -82,7 +82,7 @@ function securemail_settings_post(array &$b)
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'securemail', 'enable', $enable);
if (!empty($_POST['securemail-test'])) {
$res = DI::emailer()->send(new SecureTestEmail(DI::app(), DI::config(), DI::pConfig(), DI::baseUrl()));
$res = DI::emailer()->send(new SecureTestEmail(DI::config(), DI::pConfig(), DI::baseUrl()));
// revert to saved value
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'securemail', 'enable', $enable);