Add local.settings.php to every instance
This commit adds a new file 'local.settings.php' to each distillery instance. This file can be used to automatically edit global distillery settings.
This commit is contained in:
parent
6eab3ac311
commit
24ff81f7cd
13 changed files with 98 additions and 42 deletions
|
|
@ -43,7 +43,6 @@ function set_setting(string $name, mixed $value): bool {
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
// reset the file mode
|
||||
return chmod($filename, $old);
|
||||
}
|
||||
|
|
@ -80,7 +79,7 @@ function install_settings_include(array $paths): bool {
|
|||
// add code to include the file if it exists
|
||||
$code = $code . 'if (file_exists(' . $the_path . ')) { include_once ' . $the_path . '; }' . "\n";
|
||||
}
|
||||
$code = $code . "// </distillery-settings-include>";
|
||||
$code = $code . "// </distillery-settings-include>\n";
|
||||
|
||||
// and store the settings
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue