aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-03-28 11:41:13 -0400
committerJoey Hess <joey@kitenet.net>2011-03-28 11:42:21 -0400
commit690840698921e1a17831ff6dc15d3ae304abaf37 (patch)
treeb3c0d6ff1617e58bf1487834214f2c18408bb6f8
parent32b704aee60aaa3ae0f42cdd53caa2eb12b2fb77 (diff)
downloadikiwiki-690840698921e1a17831ff6dc15d3ae304abaf37.tar
ikiwiki-690840698921e1a17831ff6dc15d3ae304abaf37.tar.gz
Revert "comment: Don't show comments of subpages on parent pages. (Fixes bug introduced in version 3.20100505.)"
This reverts commit b34d31142b9fed28ec9cf77fe0c5d9f405d48c84. This was the wrong approach. It broke inlining of comment(*) on eg, a toplevel comment page.
-rw-r--r--IkiWiki/Plugin/comments.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 8f475aa56..6691dbafa 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -957,8 +957,7 @@ sub match_comment ($$;@) {
}
}
- return match_glob($page, "$glob/*", internal => 1, @_) &&
- ! match_glob($page, "$glob/*/*", internal => 1, @_);
+ return match_glob($page, "$glob/*", internal => 1, @_);
}
sub match_comment_pending ($$;@) {
@@ -973,8 +972,7 @@ sub match_comment_pending ($$;@) {
return IkiWiki::FailReason->new("$page is not a pending comment");
}
- return match_glob($page, "$glob/*", internal => 1, @_) &&
- ! match_glob($page, "$glob/*/*", internal => 1, @_);
+ return match_glob($page, "$glob/*", internal => 1, @_);
}
1