summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/comments.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 0de7a6743..f612f8947 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -558,7 +558,7 @@ sub pagetemplate (@) { #{{{
eval q{use IkiWiki::Plugin::inline};
error($@) if $@;
- my @args = (
+ $comments = IkiWiki::preprocess_inline(
pages => "internal($page/${comments_pagename}*)",
template => 'comments_display',
show => 0,
@@ -568,7 +568,6 @@ sub pagetemplate (@) { #{{{
feedfile => 'comments',
emptyfeeds => 'no',
);
- $comments = IkiWiki::preprocess_inline(@args);
}
if (defined $comments && length $comments) {