]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
Allow update.php to be run from outside of the main directory
[tt-rss.git] / update.php
index e0c46027383a7a1d28466bdd4c1a0d3fd397944e..6be19473fb9ea48a8033326aacae3bd5c3e5d164 100755 (executable)
@@ -2,6 +2,7 @@
 <?php
        define('DISABLE_SESSIONS', true);
 
+       chdir(dirname($_SERVER['SCRIPT_NAME']));
        require_once "functions.php";
        require_once "sanity_check.php";
        require_once "config.php";