diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-26 00:17:23 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-26 00:17:23 -0700 |
commit | 3885aa1e8c4aaa8242751673d037c654b6028032 (patch) | |
tree | 779f8a86bf48be3f04d9afd7cd535721aa22dfc6 | |
parent | 33b1c570921d07e0ea1ac492ca6d7b48f6cbd7d5 (diff) | |
download | volse-hubzilla-3885aa1e8c4aaa8242751673d037c654b6028032.tar.gz volse-hubzilla-3885aa1e8c4aaa8242751673d037c654b6028032.tar.bz2 volse-hubzilla-3885aa1e8c4aaa8242751673d037c654b6028032.zip |
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.
-rwxr-xr-x | boot.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |