summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php3
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";