summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-16 14:25:13 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-16 14:25:13 -0700
commit35bbffcc29fcf592b8dde3670d12f543258f01e0 (patch)
tree90c54472909be485eef1cf829a8e9a6c7e0a5f07 /modules/comment
parente3535349abb6e955a75d97f57971f4ea4913da6f (diff)
parent8ee60e6b5d694a8117c94595a0f03090cd41cca8 (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/helpers/comment_rss.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment_rss.php b/modules/comment/helpers/comment_rss.php
index eee6f750..479023bd 100644
--- a/modules/comment/helpers/comment_rss.php
+++ b/modules/comment/helpers/comment_rss.php
@@ -39,7 +39,13 @@ class comment_rss_Core {
->order_by("created", "DESC");
if ($feed_id == "item") {
- $comments->where("item_id", "=", $id);
+ $item = ORM::factory("item", $id);
+ $subquery = db::select("id")
+ ->from("items")
+ ->where("left_ptr", ">=", $item->left_ptr)
+ ->where("right_ptr", "<=", $item->right_ptr);
+ $comments
+ ->where("item_id", "in", $subquery);
}
$feed = new stdClass();