cvs: php-master-web /scripts php_version
| From: | Hannes Magnusson | Date: | Fri, 07 Sep 2007 11:52:06 +0000 |
| Subject: | cvs: php-master-web /scripts php_version | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21@lists.php.net to get a copy of this message | ||
bjori Fri Sep 7 11:52:06 2007 UTC
Modified files:
/php-master-web/scripts php_version
Log:
- Set correct media type for empty <content />
- Add (and fix) the link rel="self"
- Add a link to qa.php.net in the RC release text
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/php_version?r1=1.1&r2=1.2&diff_format=u
Index: php-master-web/scripts/php_version
diff -u php-master-web/scripts/php_version:1.1 php-master-web/scripts/php_version:1.2
--- php-master-web/scripts/php_version:1.1 Thu Sep 6 14:50:27 2007
+++ php-master-web/scripts/php_version Fri Sep 7 11:52:06 2007
@@ -1,7 +1,7 @@
<?php # vim: ft=php sw=4 ts=4 et
function pregenerate_version_feed($v, $r, $output) {
- $RC_ANNOUNCEMENT_TEXT = "Please check out the new Release Canidate on http://qa.php.net";
+ $RC_ANNOUNCEMENT_TEXT = 'Please check out the new Release Canidate on <a href="http://qa.php.net">http://qa.php.net</a>';
$ANNOUNCEMENT_TEXT = "There is a new PHP release in town!";
include $v; // version.inc ($RELEASES)
@@ -19,8 +19,9 @@
$feed->appendChild($doc->createElement("title", "PHP.net releases"));
$link = $doc->createElement("link");
- $link->setAttribute("href", "/feeds/releases.atom");
+ $link->setAttribute("href", "/releases.atom");
$link->setAttribute("rel", "self");
+ $feed->appendChild($link);
$feed->appendChild($doc->createElement("icon",
"/images/news/php-logo.gif"));
@@ -92,6 +93,7 @@
$announcement = "/releases/" . str_replace(".", "_",
$version) . ".php";
$content = $doc->createElement("content");
$content->setAttribute("src", $announcement);
+ $content->setAttribute("type", "application/xhtml+xml");
$rel->appendChild($content);
$rel->appendChild($doc->createElement("id", "http://php.net$announcement"));
} else {