Changeset 1494

Show
Ignore:
Timestamp:
08/20/06 17:48:25
Author:
miyagawa
Message:

fixed warnings in Filter::ResolveRelativeLink?

Files:

Legend:

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

    r1240 r1494  
    2727 
    2828    if (my $count = $resolver->resolved_count) { 
    29         $context->log(info => "Resolved $count link(s) in " . $entry->permalink); 
     29        $context->log(info => "Resolved $count link(s) in $base"); 
    3030        $entry->body($html); 
    3131    } 
  • trunk/plagger/t/plugins/Filter-ResolveRelativeLink/base.t

    r1476 r1494  
    1818        - title: bar 
    1919          body: <a href="/foo/bar">Plagger</a> is a pluggable aggregator 
     20          link: http://plagger.org/ 
     21  - module: Filter::ResolveRelativeLink 
     22--- expected 
     23is $context->update->feeds->[0]->entries->[0]->body, '<a href="http://plagger.org/foo/bar">Plagger</a> is a pluggable aggregator' 
     24 
     25=== resolve with feed link 
     26--- input config 
     27plugins: 
     28  - module: CustomFeed::Debug 
     29    config: 
     30      title: foo 
     31      link: http://www.example.com/show/foo 
     32      entry: 
     33        - title: bar 
     34          body: <a href="/foo/bar">Plagger</a> is a pluggable aggregator 
    2035  - module: Filter::ResolveRelativeLink 
    2136--- expected