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
This commit is contained in:
Alexis Degrugillier
2021-02-02 06:40:03 -05:00
committed by GitHub
parent 1ee1fcce91
commit 36f9d44d54

View File

@@ -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 = [];