summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-15 12:38:11 +0400
committerAndrew Dolgov <[email protected]>2011-04-15 12:38:11 +0400
commit9b27cec8c01ff231085bc2045d196ace85e299d9 (patch)
treefc5a0c74235be4e2239f0f3e85bc87795141c2d3 /update_daemon2.php
parentb6c1201c33242bdf3341de7ed68792b57152bbc1 (diff)
update.php & daemon: chdir to script directory using __FILE__ magic constant
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php1
1 files changed, 1 insertions, 0 deletions
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);