BUGFIX Fix RSS feeds in RSSWidget not working. Since SimplePie has manifest_excluse, we need to include the SimplePie.php file manually in order to use the SimplePie class for RSSWidget->FeedItems()

This commit is contained in:
Sean Harvey 2008-12-09 23:15:11 +00:00
parent 733cce2290
commit 01b48e74b7
1 changed files with 11 additions and 11 deletions

View File

@ -45,7 +45,8 @@ class RSSWidget extends Widget {
function FeedItems() {
$output = new DataObjectSet();
if(class_exists('SimplePie')) {
include_once(Director::getAbsFile(SAPPHIRE_DIR . '/thirdparty/simplepie/SimplePie.php'));
$this->feed = new SimplePie($this->AbsoluteRssUrl);
$this->feed->init();
if($items = $this->feed->get_items(0, $this->NumberToShow)) {
@ -59,6 +60,5 @@ class RSSWidget extends Widget {
}
}
}
}
?>