From e91ad1e9abf094998bbcfb1ec205c46272208193 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Nov 2010 14:57:32 +0300 Subject: [PATCH] tweak new version dialog --- functions.php | 2 +- modules/popup-dialog.php | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 5f88c555..23638fea 100644 --- a/functions.php +++ b/functions.php @@ -3905,7 +3905,7 @@ if ($version_data && $version_data['version']) { if (version_compare(VERSION, $version_data['version']) == -1) { - return $version_data['version']; + return $version_data; } } } diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 394ee16a..16b727fd 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -766,18 +766,25 @@ } if ($id == "newVersion") { - $version = check_for_update($link); - - $version_link = "http://tt-rss.org"; + $version_data = check_for_update($link); + $version = $version_data['version']; + $id = $version_data['version_id']; print "
"; - print T_sprintf("New version of Tiny Tiny RSS is available (%s).
Visit %s for more information.", "$version", $version_link); + print T_sprintf("New version of Tiny Tiny RSS is available (%s).", + "$version"); print "
"; + $details = "http://tt-rss.org/redmine/versions/show/$id"; + $download = "http://tt-rss.org/#Download"; + print "
"; + print ""; + print ""; print ""; -- 2.39.5