Mail: Only show EPL version needed blur if EPL is not available

This commit is contained in:
nathangray 2020-06-08 13:30:57 -06:00
parent 8778be01ff
commit 836a3b07e3
2 changed files with 4 additions and 1 deletions

View File

@ -1361,6 +1361,9 @@ class admin_mail
$content['ident_email'] = Mail::fixInvalidAliasAddress (Api\Accounts::id2name($content['acc_imap_account_id'], 'account_email'), $content['ident_email']); $content['ident_email'] = Mail::fixInvalidAliasAddress (Api\Accounts::id2name($content['acc_imap_account_id'], 'account_email'), $content['ident_email']);
} }
// If no EPL available, show that in spamtitan blur
$content['spamtitan_blur'] = $GLOBALS['egw_info']['user']['apps']['stylite'] ? '' : lang('SpamTitian integration requires EPL version');
$tpl->exec(static::APP_CLASS.'edit', $content, $sel_options, $readonlys, $content, 2); $tpl->exec(static::APP_CLASS.'edit', $content, $sel_options, $readonlys, $content, 2);
} }

View File

@ -243,7 +243,7 @@
</row> </row>
<row> <row>
<description for="acc_spam_api" value="SpamTitan API URL"/> <description for="acc_spam_api" value="SpamTitan API URL"/>
<url id="acc_spam_api" blur="SpamTitian integration requires EPL version" width="95%" maxlength="128"/> <url id="acc_spam_api" blur="@spamtitan_blur" width="95%" maxlength="128"/>
</row> </row>
</rows> </rows>
</grid> </grid>