Changeset 169

Show
Ignore:
Timestamp:
02/26/06 22:54:16
Author:
miyagawa
Message:

Fixed Aggregator::Simple to handle multiple categories set to tags

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Aggregator/Simple.pm

    r168 r169  
    7171        $entry->title($e->title); 
    7272        $entry->author($e->author); 
    73         $entry->tags([ $e->category ]) if $e->category; 
     73 
     74        my $category = $e->category; 
     75           $category = [ $category ] if $category && !ref($category); 
     76        $entry->tags($category) if $category; 
     77 
    7478        $entry->date( Plagger::Date->rebless($e->issued) ) 
    7579            if eval { $e->issued };