From a3704c8dd8b12a64e2da4b269e576c4d56685da5 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 7 Feb 2009 17:16:48 +0000 Subject: Assign the Album|Photo path field explicitly instead of hiding that in the item::__set magic method. --- core/models/item.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index e188e0a3..7086625f 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -241,16 +241,6 @@ class Item_Model extends ORM_MPTT { } } - /** - * @see ORM::__get() - */ - public function __set($column, $value) { - if ($column == "name") { - parent::__set("path", preg_replace("/[^A-Za-z0-9\.\-_]/", "_", $value)); - } - parent::__set($column, $value); - } - /** * @see ORM::save() */ -- cgit v1.2.3