aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-26 00:17:23 -0700
committerzotlabs <mike@macgirvin.com>2016-10-26 00:17:23 -0700
commit3885aa1e8c4aaa8242751673d037c654b6028032 (patch)
tree779f8a86bf48be3f04d9afd7cd535721aa22dfc6
parent33b1c570921d07e0ea1ac492ca6d7b48f6cbd7d5 (diff)
downloadvolse-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-xboot.php6
1 files changed, 6 insertions, 0 deletions
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;
}