Changeset 629

Show
Ignore:
Timestamp:
04/20/06 16:34:13
Author:
miyagawa
Message:

ResolveRelativeLink?: don't die even if there's no link

Files:

Legend:

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

    r208 r629  
    1919 
    2020    my $base = $entry->permalink || $args->{feed}->link; 
     21    unless ($base) { 
     22        $context->log(warn => "No base link found"); 
     23        return; 
     24    } 
     25 
    2126    my $resolver = HTML::ResolveLink->new(base => $base); 
    2227    my $html = $resolver->resolve($entry->body);