X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/0ced5995d531ed108a2eec8cee7a3586cd757add..18eeb068a6be7e45add2775a4014c85e3b41b465:/IkiWiki/Plugin/comments.pm diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 0de7a6743..4999c3f24 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -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) {