summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/comments.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-17 17:06:13 -0400
committerJoey Hess <joey@kitenet.net>2010-05-17 17:06:13 -0400
commitfacc77e10925301575b46d26e031c9f6914edafb (patch)
tree87a34ba5d00dd9437217e17195d504f17d63775e /IkiWiki/Plugin/comments.pm
parent47bc6105326ce76327f2accb6d6ae34d2cb1429e (diff)
force scalar context
Diffstat (limited to 'IkiWiki/Plugin/comments.pm')
-rw-r--r--IkiWiki/Plugin/comments.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 3cafcbe9c..eb861d74f 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -859,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 ($$$$) {