Changeset 1065
- Timestamp:
- 07/10/06 14:17:54
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm
r1011 r1065 13 13 14 14 $XML::Feed::RSS::PREFERRED_PARSER = first { $_->require } qw( XML::RSS::Liberal XML::RSS::LibXML XML::RSS ); 15 16 eval { require XML::Liberal };17 if (!$@ && $XML::Liberal::VERSION >= 0.10) {18 XML::Liberal->globally_override('LibXML');19 }20 15 21 16 sub register { … … 90 85 my $args = { content => $$xml_ref }; 91 86 $context->run_hook('aggregator.filter.feed', $args); 87 88 # override XML::LibXML with Liberal 89 my $sweeper; # XML::Liberal >= 0.13 90 91 eval { require XML::Liberal }; 92 if (!$@ && $XML::Liberal::VERSION >= 0.10) { 93 $sweeper = XML::Liberal->globally_override('LibXML'); 94 } 92 95 93 96 my $remote = eval { XML::Feed->parse(\$args->{content}) };
