]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix PHP_EXECUTABLE declaration not being properly overriden in config.php (closes...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 11 Jan 2011 08:31:21 +0000 (11:31 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 11 Jan 2011 08:31:21 +0000 (11:31 +0300)
update.php

index 873928b66171a9d1676132308f40851749d55cdb..e0c46027383a7a1d28466bdd4c1a0d3fd397944e 100755 (executable)
@@ -2,15 +2,15 @@
 <?php
        define('DISABLE_SESSIONS', true);
 
-       if (!defined('PHP_EXECUTABLE'))
-               define('PHP_EXECUTABLE', '/usr/bin/php');
-
        require_once "functions.php";
        require_once "sanity_check.php";
        require_once "config.php";
        require_once "db.php";
        require_once "db-prefs.php";
 
+       if (!defined('PHP_EXECUTABLE'))
+               define('PHP_EXECUTABLE', '/usr/bin/php');
+
        $op = $argv[1];
 
        if (!$op || $op == "-help") {