From 3885aa1e8c4aaa8242751673d037c654b6028032 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 26 Oct 2016 00:17:23 -0700 Subject: 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. --- boot.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index ad7c1936d..c52f844e1 100755 --- a/boot.php +++ b/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; } -- cgit v1.2.3