소스 검색

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 5 년 전
부모
커밋
36f9d44d54
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = [];