]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
don't explicitly use inline
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index 0de7a67436c709cd351536abbd4988e14af994e3..4999c3f249480d0103781431fe8b629e9d3fa4e3 100644 (file)
@@ -555,10 +555,7 @@ sub pagetemplate (@) { #{{{
                }
 
                if ($shown) {
-                       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 +565,6 @@ sub pagetemplate (@) { #{{{
                                feedfile => 'comments',
                                emptyfeeds => 'no',
                        );
-                       $comments = IkiWiki::preprocess_inline(@args);
                }
 
                if (defined $comments && length $comments) {