[gravatar] Use addon config entries instead of the db

This commit is contained in:
Philipp 2023-01-03 20:31:41 +01:00
parent 5e2ebd13b9
commit ab5aea8328
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View file

@ -93,7 +93,7 @@ function gravatar_addon_admin (App $a, string &$o)
];
// Check if Libravatar is enabled and show warning
if (DBA::exists('addon', ['name' => 'libravatar', 'installed' => true])) {
if (!empty(DI::config()->get('addons', 'libravatar'))) {
$o = '<h5>' .DI::l10n()->t('Information') .'</h5><p>' .DI::l10n()->t('Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.<br>The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.') .'</p><br><br>';
}