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 "