]> git.wh0rd.org Git - tt-rss.git/commitdiff
better new version detection (fix)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 Aug 2006 03:59:23 +0000 (04:59 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 Aug 2006 03:59:23 +0000 (04:59 +0100)
functions.php

index 25b7dff762cde40c32eef1300463426d6a434ef8..30c59e9d663eb72cb042c085f53da902a9c05d6e 100644 (file)
 
                        $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 "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\">