Skip to content

Commit

Permalink
Revise Controller_Rest_Items to use Item::root()->id instead of hardc…
Browse files Browse the repository at this point in the history
…oded 1.
  • Loading branch information
shadlaws committed Jun 13, 2013
1 parent e76bcc2 commit 6dfebf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gallery/classes/Gallery/Controller/Rest/Items.php
Expand Up @@ -90,8 +90,8 @@ public static function get_members($id, $params) {
}
}
} else {
// Members are the standard item collection member list - same as rest/items/1.
$data = Rest::get_members("item", 1, $params);
// Members are the standard item collection member list - same as members of root item.
$data = Rest::get_members("item", Item::root()->id, $params);
}

return $data;
Expand Down

0 comments on commit 6dfebf0

Please sign in to comment.