better new version detection (fix)

This commit is contained in:
Andrew Dolgov 2006-08-30 04:59:23 +01:00
parent a41d2c65a0
commit 48e1a34293
1 changed files with 4 additions and 2 deletions

View File

@ -2574,8 +2574,10 @@
$latest_version = trim(preg_replace("/(Milestone)|(completed)/", "", $latest_item["title"])); $latest_version = trim(preg_replace("/(Milestone)|(completed)/", "", $latest_item["title"]));
$release_url = sanitize_rss($last_item["link"]); $release_url = sanitize_rss($latest_item["link"]);
$content = sanitize_rss($last_item["description"]); $content = sanitize_rss($latest_item["description"]);
$latest_version = "2.0";
if (version_compare(VERSION, $latest_version) == -1) { if (version_compare(VERSION, $latest_version) == -1) {
return "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\"> return "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\">