summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-14 17:11:21 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-14 17:11:21 +0100
commitcbb6617a3866b96556c790ec13260058706b95be (patch)
tree8a8d6b38e7a955e00a7080b9cd29862335d8fb07 /index.php
parent6a3c88a7b4df3310a931a4e4452d59a21adf1c7c (diff)
define $HOME if it's not defined already
Some scripts might rely on it being defined. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 468be6552..2bf26537b 100755
--- a/index.php
+++ b/index.php
@@ -191,6 +191,10 @@ if (false && defined('ENVIRONMENT'))
define('APPPATH', BASEPATH.$application_folder.'/');
}
+ if (getenv("HOME") == "") {
+ putenv('HOME='.FCPATH);
+ }
+
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE