From: Andrew Dolgov Date: Thu, 23 Aug 2012 09:17:22 +0000 (+0400) Subject: update.php: display error message when running from the browser X-Git-Tag: 1.6.0~125 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=366f06f7cfc37895089ee53c41e79bc48802820e;p=tt-rss.git update.php: display error message when running from the browser mention self-updating in new version dialog --- 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 + + + + + + +

+ + + + +