mirror of
https://github.com/friendica/friendica
synced 2025-04-29 15:44:24 +02:00
Disable setting fields in case we use environment variables
This commit is contained in:
parent
f61fd93db0
commit
76f3b07033
11 changed files with 65 additions and 19 deletions
|
@ -68,6 +68,12 @@ class ReadOnlyFileConfig implements IManageConfigValues
|
|||
return $this->configCache->get($cat, $key) ?? $default_value;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public function isSetDisabled(string $cat, string $key): bool
|
||||
{
|
||||
return $this->configCache->getSource($cat, $key) >= Cache::SOURCE_ENV;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public function set(string $cat, string $key, $value): bool
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue