avoid unnecessary variable
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 12 Dec 2008 20:08:06 +0000 (15:08 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 12 Dec 2008 20:08:06 +0000 (15:08 -0500)
IkiWiki/Plugin/comments.pm

index 0de7a67436c709cd351536abbd4988e14af994e3..f612f89475dd6450c8128b3a974c6c60bddc1936 100644 (file)
@@ -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) {