diff options
author | Andrew Dolgov <[email protected]> | 2011-04-15 12:38:11 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-15 12:38:11 +0400 |
commit | 9b27cec8c01ff231085bc2045d196ace85e299d9 (patch) | |
tree | fc5a0c74235be4e2239f0f3e85bc87795141c2d3 /update.php | |
parent | b6c1201c33242bdf3341de7ed68792b57152bbc1 (diff) |
update.php & daemon: chdir to script directory using __FILE__ magic constant
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/update.php b/update.php index 4598e7c66..9c9c6ae8d 100755 --- a/update.php +++ b/update.php @@ -2,7 +2,8 @@ <?php define('DISABLE_SESSIONS', true); - chdir(dirname($_SERVER['SCRIPT_NAME'])); + chdir(dirname(__FILE__)); + require_once "functions.php"; require_once "sanity_check.php"; require_once "config.php"; |