fix match_comment
authorJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 16:55:34 +0000 (12:55 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 7 May 2010 16:55:34 +0000 (12:55 -0400)
IkiWiki/Plugin/comments.pm

index 448ef02f7c9a9c51121f429b8b6e03e9dc16a9e8..0a808aaeff9de1fb99dbe9cb2a150517cf59c48f 100644 (file)
@@ -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") {