diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-12-12 15:08:06 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-12-12 15:08:06 -0500 |
commit | 2a7849b8385c21dfa8a6f764a5e2cf8ea5f97070 (patch) | |
tree | 65aaee31a78af31b44bf581b9ebeaaa0e072722b | |
parent | 0ced5995d531ed108a2eec8cee7a3586cd757add (diff) |
avoid unnecessary variable
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 3 |
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) { |