diff options
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index d0d7f4217..f34871f4a 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -100,7 +100,9 @@ sub preprocess (@) { #{{{ return "<a href=\"".$feed->{url}."\">".$feed->{name}."</a>: ". "<i>".$feed->{message}."</i> (".$feed->{numposts}. - " stored posts; ".$feed->{newposts}." new)"; + " stored posts". + ($feed->{newposts} ? "; ".$feed->{newposts}." new" : ""). + ")"; } # }}} sub delete (@) { #{{{ |