summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-12-11 17:31:57 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-12-11 17:31:57 -0500
commit8d3a3c6a1e2a5a2be4213c2ce80c02e8f31dc9b4 (patch)
tree491a06e21575d37786e3ce99dccc38375a37dfe4 /IkiWiki/Plugin
parentb67632cdcdd333cf0a88d03c0f7e6e62921f32c3 (diff)
simplifiy logic
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/inline.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 17cc46e0e..d6ef6c54c 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -312,8 +312,7 @@ sub preprocess_inline (@) { #{{{
# emptyfeeds cannot be hidden.
$emptyfeeds=1;
}
- elsif ($feeds && !$params{preview} &&
- ! (! $emptyfeeds && ! @feedlist)) {
+ elsif ($feeds && !$params{preview} && ($emptyfeeds || @feedlist)) {
# Add feed buttons.
my $linktemplate=template("feedlink.tmpl", blind_cache => 1);
$linktemplate->param(rssurl => $rssurl) if $rss;
@@ -390,7 +389,7 @@ sub preprocess_inline (@) { #{{{
}
}
- if ($feeds && ! (! $emptyfeeds && ! @feedlist)) {
+ if ($feeds && ($emptyfeeds || @feedlist)) {
if ($rss) {
my $rssp=$feedbase."rss".$feednum;
will_render($params{destpage}, $rssp);