Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gallery/gallery3
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jun 16, 2010
2 parents e353534 + 8ee60e6 commit 35bbffc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion modules/comment/helpers/comment_rss.php
Expand Up @@ -39,7 +39,13 @@ static function feed($feed_id, $offset, $limit, $id) {
->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();
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/helpers/photo.php
Expand Up @@ -26,7 +26,7 @@
class photo_Core {
static function get_edit_form($photo) {
$form = new Forge("photos/update/$photo->id", "", "post", array("id" => "g-edit-photo-form"));
$form->hidden("from_id");
$form->hidden("from_id")->value($photo->id);
$group = $form->group("edit_item")->label(t("Edit Photo"));
$group->input("title")->label(t("Title"))->value($photo->title)
->error_messages("required", t("You must provide a title"))
Expand Down

0 comments on commit 35bbffc

Please sign in to comment.