]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/comments.pm
response: shortcomings
[git.ikiwiki.info.git] / IkiWiki / Plugin / comments.pm
index af7e7eccd89603430c7b0f4d5cee65b07c4ae02f..eb861d74fbd1206476c74387ba1bd2fba694775f 100644 (file)
@@ -742,7 +742,6 @@ sub pagetemplate (@) {
                     $template->query(name => 'commentsurl') ||
                     $template->query(name => 'atomcommentsurl') ||
                     $template->query(name => 'comments')) &&
-                   length $page && # not dynamic
                    commentsshown($page);
 
        if ($template->query(name => 'comments')) {
@@ -860,7 +859,7 @@ sub num_comments ($$) {
        my $dir=shift;
 
        my @comments=glob("$dir/$page/$config{comments_pagename}*._comment");
-       return @comments;
+       return int @comments;
 }
 
 sub unique_comment_location ($$$$) {