From: Joey Hess Date: Fri, 7 May 2010 16:55:34 +0000 (-0400) Subject: fix match_comment X-Git-Tag: 3.20100515~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8cd216d748961a18d373b8fea6e4346c0c372f6e;p=ikiwiki.git fix match_comment --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 448ef02f7..0a808aaef 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -906,7 +906,7 @@ sub match_comment ($$;@) { my $page = shift; my $glob = shift; - my $match=match_glob($page, "$glob/*", @_); + my $match=match_glob($page, "$glob/*", internal => 1, @_); if ($match) { my $type=IkiWiki::pagetype($IkiWiki::pagesources{$page}); if ($type ne "_comment") { @@ -920,7 +920,7 @@ sub match_comment_pending ($$;@) { my $page = shift; my $glob = shift; - my $match=match_glob($page, "$glob/*", @_); + my $match=match_glob($page, "$glob/*", internal => 1, @_); if ($match) { my $type=IkiWiki::pagetype($IkiWiki::pagesources{$page}); if ($type ne "_comment_pending") {