better new version detection (fix)

This commit is contained in:
Andrew Dolgov 2006-08-30 04:59:23 +01:00
parent a41d2c65a0
commit 48e1a34293

View file

@ -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 "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\">