From 3de78afd3bc9b01da3a03391dc566430b490886c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Oct 2012 00:25:56 +0400 Subject: [PATCH] fix called-from-browser detection in update.php --- update.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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. -

+

- +