From 73495fd16f6e89c5eeefb6a9c2fdc11b14fa57d4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 23 Jan 2009 06:53:31 +0100 Subject: tweak new version notification stuff --- functions.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'functions.php') 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)."
$content
"; + } else { + return false; + } } } -- cgit v1.2.3-54-g00ecf