- blog.module:

+ added RSS 0.91(5) feeds to the blog module which makes it possible
    to both syndicate an particular user's latest blog entries, or the
    latest entries of all users.
3-00
Dries Buytaert 2001-07-14 13:40:47 +00:00
parent e724f18db9
commit cd16e265ba
1 changed files with 2 additions and 1 deletions

View File

@ -90,11 +90,12 @@ function format_info($body, $block) {
return "<table><tr><td><table align=\"right\" border=\"1\" width=\"180\"><tr><td>$block</td></tr></table>$body</td></tr></table>\n";
}
function format_rss_channel($title, $link, $description, $items) {
function format_rss_channel($title, $link, $description, $items, $language = "en") {
$output .= "<channel>\n";
$output .= " <title>". strip_tags($title) ."</title>\n";
$output .= " <link>". strip_tags($link) ."</link>\n";
$output .= " <description>". htmlentities($description) ."</description>\n";
$output .= " <language>$language</language>\n";
$output .= $items;
$output .= "</channel>\n";