$template->query(name => 'commentsurl') ||
$template->query(name => 'atomcommentsurl') ||
$template->query(name => 'comments')) &&
- length $page && # not dynamic
commentsshown($page);
if ($template->query(name => 'comments')) {
my $dir=shift;
my @comments=glob("$dir/$page/$config{comments_pagename}*._comment");
- return @comments;
+ return int @comments;
}
sub unique_comment_location ($$$$) {