Changeset 2053

Show
Ignore:
Timestamp:
11/25/08 10:49:20
Author:
miyagawa
Message:

don't use XML::Feed::RSS

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/FeedParser.pm

    r2050 r2053  
    55use XML::Atom; 
    66use XML::Feed; 
    7 use XML::Feed::RSS; 
     7eval { 
     8    require XML::Feed::RSS; 
     9    require XML::Feed::Format::RSS; 
     10}; 
    811$XML::Feed::Format::RSS::PREFERRED_PARSER = $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; 
    912$XML::Atom::ForceUnicode = 1; 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm

    r2050 r2053  
    66use XML::Feed; 
    77use XML::Feed::Entry; 
    8 use XML::Feed::RSS; # load explicitly to force LibXML 
    98use XML::RSS::LibXML; 
    109use File::Spec; 
    11  
     10eval { 
     11    require XML::Feed::RSS; 
     12    require XML::Feed::Format::RSS; 
     13}; 
    1214$XML::Feed::Format::RSS::PREFERRED_PARSER = $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; 
    1315