]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
update.php & daemon: chdir to script directory using __FILE__ magic constant
[tt-rss.git] / update_daemon2.php
index 1b1044238c0bcf5cf1ab0e1477e097b57d98806b..6ccdbcb100e5a7fc2afd614563a1098159b92e76 100755 (executable)
@@ -4,6 +4,7 @@
        // Some configurable variable may be found below.
 
        declare(ticks = 1);
+       chdir(dirname(__FILE__));
 
        define('DISABLE_SESSIONS', true);