1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/textproc/p5-Plagger/files/patch-lib-Plagger-Plugin-Publish-Feed.pm
2007-10-03 09:40:49 +00:00

25 lines
618 B
Perl

--- lib/Plagger/Plugin/Publish/Feed.pm-
+++ lib/Plagger/Plugin/Publish/Feed.pm
@@ -148,14 +154,15 @@
*XML::Feed::Entry::RSS::add_enclosure = sub {
my($entry, $enclosure) = @_;
- $entry->{entry}->{enclosure} = {
- url => $enclosure->{url},
- type => $enclosure->{type},
- length => $enclosure->{length},
- };
+ $entry->{entry}->{enclosure} = XML::RSS::LibXML::MagicElement->new(
+ attributes => {
+ url => $enclosure->{url},
+ type => $enclosure->{type},
+ length => $enclosure->{length},
+ }
+ );
};
-
1;
__END__