summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-23 06:53:31 +0100
committerAndrew Dolgov <[email protected]>2009-01-23 06:53:31 +0100
commit73495fd16f6e89c5eeefb6a9c2fdc11b14fa57d4 (patch)
tree1ca8e9232f678dd41a3ae159695d2bb1d18c67e5 /functions.php
parent6906f145918586c2f2c453d83857f2442df9b94a (diff)
tweak new version notification stuff
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php19
1 files changed, 6 insertions, 13 deletions
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("<a href=\"javascript:showBlockElement('milestoneDetails')\">
- New version of Tiny-Tiny RSS ($latest_version) is available (click for details)</a>
- <div id=\"milestoneDetails\">$content</div>");
- } else {
- return "New version of Tiny-Tiny RSS ($latest_version) is available:
- <div class='milestoneDetails'>$content</div>
- Visit <a target=\"_blank\" href=\"http://tt-rss.org/\">official site</a> for
- download and update information.";
- }
-
- }
+ return sprintf("New version of Tiny-Tiny RSS (%s) is available:",
+ $latest_version)."<div class='milestoneDetails'>$content</div>";
+ } else {
+ return false;
+ }
}
}