1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 08:01:29 +00:00

tweak new version notification stuff

This commit is contained in:
Andrew Dolgov
2009-01-23 06:53:31 +01:00
parent 6906f14591
commit 73495fd16f
7 changed files with 32 additions and 29 deletions

View File

@@ -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;
}
}
}