mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: moved rss feed link to its own function to allow extensions to override
This commit is contained in:
parent
e688e0687e
commit
fea6a12472
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user