diff --git a/securemail/securemail.php b/securemail/securemail.php index d396b3a8c..0c0b282b2 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -77,7 +77,7 @@ function securemail_settings_post(App &$a, array &$b) $enable = (!empty($_POST['securemail-enable']) ? 1 : 0); DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable); - if ($_POST['securemail-submit'] == DI::l10n()->t('Save and send test')) { + if ($_POST['securemail-submit'] == 'test' { $res = DI::emailer()->send(new SecureTestEmail(DI::app(), DI::config(), DI::pConfig(), DI::baseUrl())); diff --git a/securemail/templates/admin.tpl b/securemail/templates/admin.tpl index c23ff2cda..ec35e3328 100644 --- a/securemail/templates/admin.tpl +++ b/securemail/templates/admin.tpl @@ -1,26 +1,16 @@ -{{* We organize the settings in collapsable panel-groups *}} -{{* this div should be in frio theme *}} -
- {{* The password setting section *}} -
- -
-
- {{include file="field_checkbox.tpl" field=$enable}} - {{include file="field_textarea.tpl" field=$publickey}} + +

{{$title}}

+
+ +
+ +
+
+