From: Andrew Dolgov Date: Wed, 30 Aug 2006 03:59:23 +0000 (+0100) Subject: better new version detection (fix) X-Git-Tag: 1.2.3~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=48e1a34293a81a8e93c513d68a3b3d1f10722eaf;p=tt-rss.git better new version detection (fix) --- diff --git a/functions.php b/functions.php index 25b7dff7..30c59e9d 100644 --- a/functions.php +++ b/functions.php @@ -2574,8 +2574,10 @@ $latest_version = trim(preg_replace("/(Milestone)|(completed)/", "", $latest_item["title"])); - $release_url = sanitize_rss($last_item["link"]); - $content = sanitize_rss($last_item["description"]); + $release_url = sanitize_rss($latest_item["link"]); + $content = sanitize_rss($latest_item["description"]); + + $latest_version = "2.0"; if (version_compare(VERSION, $latest_version) == -1) { return "