From: Andrew Dolgov Date: Thu, 25 Nov 2010 11:57:32 +0000 (+0300) Subject: tweak new version dialog X-Git-Tag: 1.5.0~43 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e91ad1e9abf094998bbcfb1ec205c46272208193;p=tt-rss.git tweak new version dialog --- 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 "";