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';
}
function FeedItems() {
function getFeedItems() {
$output = new DataObjectSet();
// 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
*/
function RSSLink() {
function getRSSLink() {
Requirements::themedCSS('subscribersswidget');
$container = BlogTree::current();
if ($container) return $container->Link() . 'rss';

View File

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