Changeset 1959
- Timestamp:
- 09/29/07 13:59:04
- Files:
-
- trunk/plagger (modified) (previous)
- trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm
r1898 r1959 49 49 $feed->modified(Plagger::Date->now); 50 50 $feed->generator("Plagger/$Plagger::VERSION"); 51 $feed->description($f->description || ''); 51 $feed->description($f->description); 52 $feed->copyright($f->meta->{copyright}) if $f->meta->{copyright}; 52 53 $feed->author( $self->make_author($f->author, $feed_format) ) 53 54 if $f->primary_author; … … 149 150 *XML::Feed::Entry::RSS::add_enclosure = sub { 150 151 my($entry, $enclosure) = @_; 151 $entry->{entry}->{enclosure} = { 152 url => $enclosure->{url}, 153 type => $enclosure->{type}, 154 length => $enclosure->{length}, 155 }; 152 $entry->{entry}->{enclosure} = XML::RSS::LibXML::MagicElement->new( 153 attributes => { 154 url => $enclosure->{url}, 155 type => $enclosure->{type}, 156 length => $enclosure->{length}, 157 } 158 ); 156 159 }; 157 158 160 159 161 1;
