diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-26 11:26:44 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-26 11:26:44 -0800 |
commit | 07e83718a0cd1bcef1f0a0546ffcb7cb6a1735ae (patch) | |
tree | 0cbd69fd0dad135ec37a79ecee6cf2dbd9ab4454 /modules/gallery | |
parent | 3060a6f662da66008d57a461bf1c9b5b4aa2b002 (diff) |
Forgot to commit local changes to item helper for K2.4
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/helpers/item.php | 8 |
1 files changed, 4 insertions, 4 deletions
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; |