diff options
author | Andrew Dolgov <[email protected]> | 2007-08-10 06:22:04 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-10 06:22:04 +0100 |
commit | a5472764c9bcd3eda58540e2cc97c5a42bb1bc1c (patch) | |
tree | 74c6ae7c9e33585f69c34854664d7631bbdbd945 /functions.php | |
parent | f56e308090f460d97dbe834ad88754231c3459e9 (diff) |
add XSL stylesheet to generated feeds
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 7a9591535..eb14f52e5 100644 --- a/functions.php +++ b/functions.php @@ -2722,9 +2722,11 @@ $feed_site_url = $qfh_ret[2]; $last_error = $qfh_ret[3]; -# if (!$feed_site_url) $feed_site_url = "http://localhost/"; +// if (!$feed_site_url) $feed_site_url = "http://localhost/"; - print "<rss version=\"2.0\"> + print "<?xml version=\"1.0\" encoding=\"utf-8\"?> + <?xml-stylesheet type=\"text/xsl\" href=\"rss.xsl\"?> + <rss version=\"2.0\"> <channel> <title>$feed_title</title> <link>$feed_site_url</link> |