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
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user