Changeset 2051

Show
Ignore:
Timestamp:
11/15/08 05:23:57
Author:
miyagawa
Message:

more XML::Feed changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/FeedBurnerPermalink.pm

    r829 r2051  
    1818 
    1919    # RSS 1.0 & 2.0 
    20     if ($args->{orig_entry}->isa('XML::Feed::Entry::RSS')) { 
     20    if (ref $args->{orig_entry} =~ /RSS/) { 
    2121        if (my $orig_link = $args->{orig_entry}->{entry}->{$fbns}->{origLink}) { 
    2222            $args->{entry}->permalink($orig_link); 
     
    2525    } 
    2626    # Atom 1.0 
    27     elsif ($args->{orig_entry}->isa('XML::Feed::Entry::Atom')) { 
     27    elsif (ref $args->{orig_entry} =~ /Atom/) { 
    2828        my $ns = XML::Atom::Namespace->new(feedburner => $fbns); 
    2929        if (my $orig_link = $args->{orig_entry}->{entry}->get($ns, 'origLink')) {