From: Andrew Dolgov Date: Tue, 23 Oct 2012 20:25:56 +0000 (+0400) Subject: fix called-from-browser detection in update.php X-Git-Tag: 1.6.1~68 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3de78afd3bc9b01da3a03391dc566430b490886c;p=tt-rss.git fix called-from-browser detection in update.php --- diff --git a/update.php b/update.php index afe70b90..6e23892e 100755 --- a/update.php +++ b/update.php @@ -15,30 +15,30 @@ require_once "db-prefs.php"; require_once "update_self.php"; - if (!defined('STDIN')) { + if (!defined('PHP_EXECUTABLE')) + define('PHP_EXECUTABLE', '/usr/bin/php'); + + $op = $argv; + + if (count($argv) == 0 && !defined('STDIN')) { ?> - Update Tool + Tiny Tiny RSS data update script. -

+

- +