Changeset 2055

Show
Ignore:
Timestamp:
12/13/08 14:02:59
Author:
miyagawa
Message:

fixed the ref/regexp

Files:

Legend:

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

    r2051 r2055  
    1818 
    1919    # RSS 1.0 & 2.0 
    20     if (ref $args->{orig_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 (ref $args->{orig_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')) {