From 9b27cec8c01ff231085bc2045d196ace85e299d9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 15 Apr 2011 12:38:11 +0400 Subject: update.php & daemon: chdir to script directory using __FILE__ magic constant --- update_daemon2.php | 1 + 1 file changed, 1 insertion(+) (limited to 'update_daemon2.php') diff --git a/update_daemon2.php b/update_daemon2.php index 1b1044238..6ccdbcb10 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -4,6 +4,7 @@ // Some configurable variable may be found below. declare(ticks = 1); + chdir(dirname(__FILE__)); define('DISABLE_SESSIONS', true); -- cgit v1.2.3-54-g00ecf