summaryrefslogtreecommitdiff
path: root/modules/g2_import/controllers
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/g2_import/controllers
parentcfbbf9ef606094868ccbd25ccf65e1a6f610528b (diff)
Convert back to using ORM::factory(..., $id) instead of calling where().
Diffstat (limited to 'modules/g2_import/controllers')
-rw-r--r--modules/g2_import/controllers/g2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/g2_import/controllers/g2.php b/modules/g2_import/controllers/g2.php
index 3e002758..5fd4400c 100644
--- a/modules/g2_import/controllers/g2.php
+++ b/modules/g2_import/controllers/g2.php
@@ -50,7 +50,7 @@ class G2_Controller extends Admin_Controller {
throw new Kohana_404_Exception();
}
- $item = ORM::factory("item")->where("id", "=", $g2_map->g3_id)->find();
+ $item = ORM::factory("item", $g2_map->g3_id);
if (!$item->loaded() || !access::can("view", $item)) {
throw new Kohana_404_Exception();
}