Changeset 1217

Show
Ignore:
Timestamp:
08/07/06 16:46:02
Author:
miyagawa
Message:

set author in RSS even if author is not defined

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm

    r1216 r1217  
    7777        $entry->modified($e->date) if $e->date; 
    7878 
    79         if ($entry->author) { 
    80             $entry->author( $feed_format eq 'RSS' 
    81                                 ? 'nobody@example.com (' . $e->author . ')' 
    82                                 : $e->author ); 
     79        if ($feed_format eq 'RSS') { 
     80            my $author = 'nobody@example.com'; 
     81            $author .= '(' . $e->author . ')' if $e->author; 
     82            $entry->author($author); 
     83        } elsif ($e->author) { 
     84            $entry->author($e->author); 
    8385        } 
    8486