From 366f06f7cfc37895089ee53c41e79bc48802820e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2012 13:17:22 +0400 Subject: [PATCH] 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 008518a8..2701a98b 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 f23244d8..01ce6df8 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 + + + + + + +

+ + + + +