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:
zotlabs 2016-10-26 00:17:23 -07:00
parent 33b1c57092
commit 3885aa1e8c

View file

@ -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;
}