BUGFIX: fix blog widgets so their methods are accessible from templates

This commit is contained in:
carlos barberis 2012-09-20 16:36:01 +12:00
parent 55895d9515
commit 795f1a6a21
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class RSSWidget extends Widget {
return ($this->RSSTitle) ? $this->RSSTitle : 'RSS Feed'; return ($this->RSSTitle) ? $this->RSSTitle : 'RSS Feed';
} }
function FeedItems() { function getFeedItems() {
$output = new DataObjectSet(); $output = new DataObjectSet();
// Protection against infinite loops when an RSS widget pointing to this page is added to this page // Protection against infinite loops when an RSS widget pointing to this page is added to this page

View File

@ -21,7 +21,7 @@ class SubscribeRSSWidget extends Widget {
* *
* @return string * @return string
*/ */
function RSSLink() { function getRSSLink() {
Requirements::themedCSS('subscribersswidget'); Requirements::themedCSS('subscribersswidget');
$container = BlogTree::current(); $container = BlogTree::current();
if ($container) return $container->Link() . 'rss'; if ($container) return $container->Link() . 'rss';

View File

@ -47,7 +47,7 @@ class TagCloudWidget extends Widget {
return $this->Title ? $this->Title : 'Tag Cloud'; return $this->Title ? $this->Title : 'Tag Cloud';
} }
function TagsCollection() { function getTagsCollection() {
Requirements::themedCSS("tagcloud"); Requirements::themedCSS("tagcloud");
$allTags = array(); $allTags = array();