MINOR: moved rss feed link to its own function to allow extensions to override

This commit is contained in:
James Kirkus-Lamont 2009-10-20 23:17:35 +00:00
parent e688e0687e
commit fea6a12472
1 changed files with 7 additions and 2 deletions

View File

@ -248,8 +248,8 @@ class BlogTree_Controller extends Page_Controller {
function init() {
parent::init();
// This will create a <link> tag point to the RSS feed
RSSFeed::linkToFeed($this->Link() . "rss", _t('BlogHolder.RSSFEED',"RSS feed of these blogs"));
$this->IncludeBlogRSS();
Requirements::themedCSS("blog");
}
@ -260,6 +260,11 @@ class BlogTree_Controller extends Page_Controller {
return $this->Entries("$start,$limit", BlogURL::tag(), BlogURL::date());
}
function IncludeBlogRSS() {
// This will create a <link> tag point to the RSS feed
RSSFeed::linkToFeed($this->Link() . "rss", _t('BlogHolder.RSSFEED',"RSS feed of these blogs"));
}
/*
* @todo: It doesn't look like these are used. Remove if no-one complains - Hamish