diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-09-07 23:54:37 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-09-07 23:54:37 +0000 |
commit | 2fd2646e6621e07d8cfb04dbff20236c86f38c63 (patch) | |
tree | bf9ab62352cf2bb5bdd605c9846b6c51233e43b9 /IkiWiki/Plugin | |
parent | 516eaeafbde03fe1ce5d80aa36874b03c4fb67e9 (diff) |
remove the "0 new", it's not very useful
Diffstat (limited to 'IkiWiki/Plugin')
-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 (@) { #{{{ |