From 07e83718a0cd1bcef1f0a0546ffcb7cb6a1735ae Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 26 Dec 2009 11:26:44 -0800 Subject: Forgot to commit local changes to item helper for K2.4 --- modules/gallery/helpers/item.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index e8119027..c620ba95 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -119,16 +119,16 @@ class item_Core { static function check_for_conflicts($item, $new_name, $new_slug) { $errors = array(); - if ($row = Database::instance() + if ($row = db::build() ->select(array("name", "slug")) ->from("items") ->where("parent_id", $item->parent_id) ->where("id <>", $item->id) - ->open_paren() + ->and_open() ->where("name", $new_name) ->orwhere("slug", $new_slug) - ->close_paren() - ->get() + ->close() + ->execute() ->current()) { if ($row->name == $new_name) { $errors["name_conflict"] = 1; -- cgit v1.2.3