- 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
parent
e724f18db9
commit
cd16e265ba
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue