Parcourir la source

Fix user configuration in extension (#3412)

Before, only one extension could be configured at a time. Thus we
were loosing the configuration for other extensions when saving.
Now, each extension can be saved without overriding data.

See #3397
Alexis Degrugillier il y a 5 ans
Parent
commit
36f9d44d54
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/Minz/Extension.php

+ 1 - 1
lib/Minz/Extension.php

@@ -240,7 +240,7 @@ abstract class Minz_Extension {
 		if (!$this->isUserConfigurationEnabled()) {
 			return;
 		}
-		if ($this->isExtensionConfigured()) {
+		if (FreshRSS_Context::$user_conf->hasParam($this->config_key)) {
 			$extensions = FreshRSS_Context::$user_conf->{$this->config_key};
 		} else {
 			$extensions = [];