mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: fix blog widgets so their methods are accessible from templates
This commit is contained in:
parent
55895d9515
commit
795f1a6a21
@ -58,7 +58,7 @@ class RSSWidget extends Widget {
|
||||
return ($this->RSSTitle) ? $this->RSSTitle : 'RSS Feed';
|
||||
}
|
||||
|
||||
function FeedItems() {
|
||||
function getFeedItems() {
|
||||
$output = new DataObjectSet();
|
||||
|
||||
// Protection against infinite loops when an RSS widget pointing to this page is added to this page
|
||||
|
@ -21,7 +21,7 @@ class SubscribeRSSWidget extends Widget {
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function RSSLink() {
|
||||
function getRSSLink() {
|
||||
Requirements::themedCSS('subscribersswidget');
|
||||
$container = BlogTree::current();
|
||||
if ($container) return $container->Link() . 'rss';
|
||||
|
@ -47,7 +47,7 @@ class TagCloudWidget extends Widget {
|
||||
return $this->Title ? $this->Title : 'Tag Cloud';
|
||||
}
|
||||
|
||||
function TagsCollection() {
|
||||
function getTagsCollection() {
|
||||
Requirements::themedCSS("tagcloud");
|
||||
|
||||
$allTags = array();
|
||||
|
Loading…
Reference in New Issue
Block a user