From: Philipp Date: Tue, 3 Jan 2023 19:31:41 +0000 (+0100) Subject: [gravatar] Use addon config entries instead of the db X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab5aea83289dc31ddbed26953d6d5b354239dc2c;p=friendica-addons.git [gravatar] Use addon config entries instead of the db --- 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.') .'



'; }