diff --git a/functions.php b/functions.php
index d920498c7..23144f535 100644
--- a/functions.php
+++ b/functions.php
@@ -3699,7 +3699,7 @@
return array($tmp, $headlines_count, $affected_ids, $tmp_t);
}
- function check_for_update($link, $brief_fmt = true) {
+ function check_for_update($link) {
$releases_feed = "http://tt-rss.org/releases.rss";
if (!CHECK_FOR_NEW_VERSION || $_SESSION["access_level"] < 10) {
@@ -3753,18 +3753,11 @@
}
if (version_compare(VERSION, $latest_version) == -1) {
- if ($brief_fmt) {
- return format_notice("
- New version of Tiny-Tiny RSS ($latest_version) is available (click for details)
-
$content
");
- } else {
- return "New version of Tiny-Tiny RSS ($latest_version) is available:
-
$content
- Visit official site for
- download and update information.";
- }
-
- }
+ return sprintf("New version of Tiny-Tiny RSS (%s) is available:",
+ $latest_version)."
";
+
if ($param == 1) {
- print __("Update daemon is enabled in configuration, but daemon
- process is not running, which prevents all feeds from updating. Please
- start the daemon process or contact instance owner.");
+ print __("Update daemon is enabled in configuration, but daemon process is not running, which prevents all feeds from updating. Please start the daemon process or contact instance owner.");
$stamp = (int)read_stampfile("update_daemon.stamp");
@@ -20,11 +20,10 @@
}
if ($param == 2) {
- $msg = check_for_update($link, false);
+ $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.");
+ 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;
}
@@ -32,10 +31,7 @@
}
if ($param == 3) {
- print __("TT-RSS has detected that 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.");
+ 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.");
$stamp = (int)read_stampfile("update_daemon.stamp");
@@ -44,14 +40,18 @@
}
print "