Changeset 87

Show
Ignore:
Timestamp:
02/17/06 19:11:03
Author:
miyagawa
Message:

updated tag configuration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Subscription/Config.pm

    r45 r87  
    2626        $feed->title($config->{title}) if $config->{title}; 
    2727 
    28         if ($config->{tags}) { 
    29             my @tags = Plagger::Tag->parse($config->{tags}); 
    30             $feed->tags(\@tags); 
     28        if (my $tags = $config->{tag}) { 
     29            unless (ref $tags) { 
     30                $tags = [ Plagger::Tag->parse($config->{tag}) ]; 
     31            } 
     32            $feed->tags($tags); 
    3133        } 
    3234