From 366f06f7cfc37895089ee53c41e79bc48802820e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2012 13:17:22 +0400 Subject: update.php: display error message when running from the browser mention self-updating in new version dialog --- classes/dlg.php | 2 ++ update.php | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/classes/dlg.php b/classes/dlg.php index 008518a8a..2701a98b2 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -899,6 +899,8 @@ class Dlg extends Handler_Protected { $details = "http://tt-rss.org/redmine/versions/show/$id"; $download = "http://tt-rss.org/#Download"; + print "

".__("You can try updating automatically using update.php")."

"; + print "
"; print ""; diff --git a/update.php b/update.php index f23244d84..01ce6df81 100755 --- a/update.php +++ b/update.php @@ -14,6 +14,25 @@ require_once "db.php"; require_once "db-prefs.php"; + if (!defined('STDIN')) { + ?> + + Database Updater + + + + + + +

+ + + + +