From 63855db147e6efeaa6516dc2b95598b03d1b3ad5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Nov 2010 10:30:36 +0300 Subject: rework version checking --- modules/popup-dialog.php | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'modules/popup-dialog.php') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 0a272d1a3..584f6e51d 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -217,17 +217,6 @@ } - if ($param == 2) { - $msg = check_for_update($link); - - if (!$msg) { - print __("You are running the latest version of Tiny Tiny RSS. The fact that you are seeing this dialog is probably a bug."); - } else { - print $msg; - } - - } - if ($param == 3) { print __("Update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner."); @@ -241,7 +230,7 @@ print "
"; - print ""; print "
"; @@ -777,6 +766,26 @@ //return; } + if ($id == "newVersion") { + $version = check_for_update($link); + + $version_link = "http://tt-rss.org"; + + print "
"; + + print T_sprintf("New version of Tiny Tiny RSS is available (%s).
Visit %s for more information.", "$version", $version_link); + + print "
"; + + print "
"; + print ""; + print "
"; + + } + print ""; } ?> -- cgit v1.2.3