diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-07 17:16:48 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-07 17:16:48 +0000 |
commit | a3704c8dd8b12a64e2da4b269e576c4d56685da5 (patch) | |
tree | 0eee21e300d1e624b584e44253ed41a3e6d6c57c /core/models | |
parent | 8a738ed241d2c3d970f28883f8a0cc5e68ea7ad0 (diff) |
Assign the Album|Photo path field explicitly instead of hiding that in
the item::__set magic method.
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/item.php | 10 |
1 files changed, 0 insertions, 10 deletions
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 @@ -242,16 +242,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() */ public function save() { |