diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-07 20:59:11 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-07 20:59:11 -0700 |
commit | 83ebc2e2b053a0d9fb100b1663471127ca281bda (patch) | |
tree | 64589b16e1a16e388b7fcbf1d1f588ba4a2f1b39 /modules | |
parent | 2f666f4c527a89df235c7fdaab4b5483c5dd2595 (diff) |
Remove unused item::validate_no_name_conflict() and a debug line.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/item.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index 7ce6519e..8da88b6e 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -94,25 +94,6 @@ class item_Core { if (preg_match("/[^A-Za-z0-9-_]/", $input->value)) { $input->add_error("not_url_safe", 1); } - Kohana::log("alert",print_r($input,1)); - } - - static function validate_no_name_conflict($input) { - $itemid = Input::instance()->post("item"); - if (is_array($itemid)) { - $itemid = $itemid[0]; - } - $item = ORM::factory("item") - ->in("id", $itemid) - ->find(); - if (Database::instance() - ->from("items") - ->where("parent_id", $item->parent_id) - ->where("id <>", $item->id) - ->where("name", $input->value) - ->count_records()) { - $input->add_error("conflict", 1); - } } /** |