From ab5aea83289dc31ddbed26953d6d5b354239dc2c Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 3 Jan 2023 20:31:41 +0100 Subject: [PATCH] [gravatar] Use addon config entries instead of the db --- gravatar/gravatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravatar/gravatar.php b/gravatar/gravatar.php index 25d342a7..c026d863 100644 --- a/gravatar/gravatar.php +++ b/gravatar/gravatar.php @@ -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 = '
' .DI::l10n()->t('Information') .'

' .DI::l10n()->t('Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.
The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.') .'



'; } -- 2.39.5