[gravatar] Use addon config entries instead of the db

pull/1345/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function gravatar_addon_admin (App $a, string &$o)
]; ];
// Check if Libravatar is enabled and show warning // 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>'; $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>';
} }