mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:15:14 +00:00
allow .htpreconfig.php to be loaded if you can't install without special settings or require PHP logging
at that time; it is ignored during normal use.
This commit is contained in:
parent
33b1c57092
commit
3885aa1e8c
1 changed files with 6 additions and 0 deletions
6
boot.php
6
boot.php
|
@ -605,6 +605,12 @@ function sys_boot() {
|
|||
|
||||
@include('.htconfig.php');
|
||||
|
||||
// allow somebody to set some initial settings just in case they can't
|
||||
// install without special fiddling
|
||||
|
||||
if(App::$install && file_exists('.htpreconfig.php'))
|
||||
@include('.htpreconfig.php');
|
||||
|
||||
if(array_key_exists('default_timezone',get_defined_vars())) {
|
||||
App::$config['system']['timezone'] = $default_timezone;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue