From 2e828a4af62ba81e30b5dee1e49f1de6e8fc443a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 25 Mar 2013 21:47:38 +0400 Subject: [PATCH] add a button to show release notes before updating; remove obsolete elements --- classes/dlg.php | 2 +- index.php | 12 ------------ plugins/updater/init.php | 7 ++++++- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/classes/dlg.php b/classes/dlg.php index 5789af68..23b9c78f 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -598,7 +598,7 @@ class Dlg extends Handler_Protected { print "
"; print ""; + onclick=\"return window.open('$details')\">".__("See the release notes").""; print ""; print "
- -
 
diff --git a/plugins/updater/init.php b/plugins/updater/init.php index 63b681e1..8a7c8a9c 100644 --- a/plugins/updater/init.php +++ b/plugins/updater/init.php @@ -323,9 +323,14 @@ class Updater extends Plugin { if (is_array($_SESSION["version_data"])) { $version = $_SESSION["version_data"]["version"]; + $version_id = $_SESSION["version_data"]["version_id"]; print_notice(T_sprintf("New version of Tiny Tiny RSS is available (%s).", "$version")); - print "

"; + + print "

"; } else { -- 2.39.5