This commit is contained in:
Will Rossiter 2008-02-24 08:19:24 +00:00
parent 33471e3926
commit 99b3127e70
1 changed files with 2 additions and 6 deletions

View File

@ -23,14 +23,10 @@ class RSSWidget extends Widget {
);
}
function Title() {
$this->feed = new SimplePie($this->RssUrl);
$this->feed->init();
return ($this->CustomTitle) ? $this->CustomTitle : $this->feed->get_feed_title();
}
function FeedItems() {
$output = new DataObjectSet();
$this->feed = new SimplePie($this->RssUrl);
$this->feed->init();
if($items = $this->feed->get_items(0, $this->NumberToShow)) {
foreach($items as $item) {
$output->push(new ArrayData(array(