summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-21 05:01:08 +0100
committerAndrew Dolgov <[email protected]>2006-08-21 05:01:08 +0100
commit8a797376557016ce3413ac05f593e38af181a69c (patch)
tree9617c9e32487177aaacc8f45dee9ba5b50664ab7 /functions.php
parent3c046813c32160079671d92c7aa91f2f48d88baf (diff)
tweak new version notify
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 6b722a7ae..7ec46f097 100644
--- a/functions.php
+++ b/functions.php
@@ -2455,11 +2455,13 @@
$last_version = trim(preg_replace("/(Milestone)|(completed)/", "", $last_item["title"]));
$cur_version = preg_replace("/\.99/", "", VERSION);
- $release_url = $last_item["link"];
+ $release_url = sanitize_rss($last_item["link"]);
+ $content = sanitize_rss($last_item["description"]);
if ($cur_version != $last_version) {
- return "<div class=\"notice\"><a target=\"_new\" href=\"$release_url\">
- New version of Tiny-Tiny RSS ($last_version) is available.</a></div>";
+ return "<div class=\"notice\"><a href=\"javascript:showBlockElement('milestoneDetails')\">
+ New version of Tiny-Tiny RSS ($last_version) is available (click for details)</a>
+ <div id=\"milestoneDetails\">$content</div></div>";
}
}
}