Changeset 253

Show
Ignore:
Timestamp:
03/03/06 12:26:55
Author:
miyagawa
Message:

Bloglines: refactored the code

Files:

Legend:

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

    r252 r253  
    2929    my $subscription = $self->{bloglines}->listsubs(); 
    3030 
    31     for my $folder ($subscription->folders) { 
    32         $self->add_subscription($subscription, $folder->{BloglinesSubId}, $folder->{title})
    33     } 
    34  
    35     $self->add_subscription($subscription, 0); 
     31    for my $folder ($subscription->folders, 0) { 
     32        my $subid = $folder ? $folder->{BloglinesSubId} : 0
     33        my $title = $folder ? $folder->{title} : undef; 
     34        $self->add_subscription($subscription, $subid, $title); 
     35    } 
    3636} 
    3737