consider overwrites, when checking if SpamTitan API is available

This commit is contained in:
ralf 2024-10-23 15:45:44 +02:00
parent 4fbeadd762
commit 82f0bbc0ca

View File

@ -1073,9 +1073,9 @@ class mail_ui
) )
) )
); );
$account = Mail\Account::read($this->mail_bo->profileID); $params = Mail\Account::read($this->mail_bo->profileID)->getParamOverwrites();
// spamTitan actions // spamTitan actions
if ($account->acc_spam_api && class_exists('stylite_mail_spamtitan')) if ($params['acc_spam_api'] && class_exists('stylite_mail_spamtitan'))
{ {
$actions['spamfilter']['children'] = array_merge($actions['spamfilter']['children'], stylite_mail_spamtitan::getActions()); $actions['spamfilter']['children'] = array_merge($actions['spamfilter']['children'], stylite_mail_spamtitan::getActions());
} }