summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/item_rest.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-27 22:34:11 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-27 22:34:11 -0800
commit4b32a71afc7650fe7bdd02ba384c8914f60538f3 (patch)
tree66fea701b9324c1de79c31c548b643f331566223 /modules/gallery/helpers/item_rest.php
parentcfbbf9ef606094868ccbd25ccf65e1a6f610528b (diff)
Convert back to using ORM::factory(..., $id) instead of calling where().
Diffstat (limited to 'modules/gallery/helpers/item_rest.php')
-rw-r--r--modules/gallery/helpers/item_rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php
index 2236fbbb..d5ca1456 100644
--- a/modules/gallery/helpers/item_rest.php
+++ b/modules/gallery/helpers/item_rest.php
@@ -145,7 +145,7 @@ class item_rest_Core {
}
static function resolve($id) {
- $item = ORM::factory("item")->where("id", "=", $id)->find();
+ $item = ORM::factory("item", $id);
if (!access::can("view", $item)) {
throw new Kohana_404_Exception();
}