From 68766a98574d98be358199924222f26d8ac36561 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Fri, 12 May 2023 17:02:25 -0400 Subject: Link configuration to proper parameter (#5394) Before, the system configuration was linked to the user parameter while the user configuration was linked to the system parameter. This was an issue when trying to retrieve some kind of configuration value in an extension. Now, the configurations are properly linked to their parameters. --- lib/Minz/Extension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Minz') diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php index 66cb4e144..79ab269fa 100644 --- a/lib/Minz/Extension.php +++ b/lib/Minz/Extension.php @@ -231,10 +231,10 @@ abstract class Minz_Extension { /** @param 'system'|'user' $type */ private function isExtensionConfigured(string $type): bool { switch ($type) { - case 'system': + case 'user': $conf = FreshRSS_Context::$user_conf; break; - case 'user': + case 'system': $conf = FreshRSS_Context::$system_conf; break; } -- cgit v1.2.3