$feedobj->{-file} = $feedfile;
$feedobj->{-base} = $feedbase;
$feedobj->{-hub} = $feedhub;
- $feedobj->{-feed} = XML::FeedPP::Atom::Atom10->new;
if ( -f $feedobj->{-file} ) {
- $feedobj->{-feed}->load($feedobj->{-file});
+ $feedobj->{-feed} = XML::FeedPP::Atom::Atom10->new(
+ $feedobj->{-file});
$feedobj->{-feed}->limit_item(15);
} else {
+ $feedobj->{-feed} = XML::FeedPP::Atom::Atom10->new;
$feedobj->{-feed}->title("Gallery");
$feedobj->{-feed}->description("generated by ".
"<a href=\"http://www.average.org/mkgallery/\">".
#$feedobj->{-feed}->language("en");
#$feedobj->{-feed}->image($url, $tit, $link, $desc, $w, $h);
}
- $feedobj->{-feed}->pubDate(time);
- $feedobj->{-feed}->to_file($feedobj->{-savepath});
$self->{-feed} = $feedobj->{-feed};
}