mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
prettify json and unescape slashes
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
2771f5124d
commit
d01a1087fa
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ class ConfigurationManager
|
||||||
if ($df !== false && (int)$df < 10240) {
|
if ($df !== false && (int)$df < 10240) {
|
||||||
throw new InvalidSettingConfigurationException(DataConst::GetDataDirectory() . " does not have enough space for writing the config file! Not writing it back!");
|
throw new InvalidSettingConfigurationException(DataConst::GetDataDirectory() . " does not have enough space for writing the config file! Not writing it back!");
|
||||||
}
|
}
|
||||||
file_put_contents(DataConst::GetConfigFile(), json_encode($config));
|
file_put_contents(DataConst::GetConfigFile(), json_encode($config, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function GetEnvironmentalVariableOrConfig(string $envVariableName, string $configName, string $defaultValue) : string {
|
private function GetEnvironmentalVariableOrConfig(string $envVariableName, string $configName, string $defaultValue) : string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue