diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:23:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:23:22 +0000 |
commit | 055aa044977fdb608547bca2f39b79abe31beabe (patch) | |
tree | be62c491226b3c8e0617b082310ab9834b16392d /core/models | |
parent | d086f31ea4f877b9497f8d4933edd9352ba04b1a (diff) |
Rename moveTo to move_to and extend the test a bit.
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/models/item.php b/core/models/item.php index f1a979ee..bb0adc5a 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -59,14 +59,14 @@ class Item_Model extends ORM_MPTT { * @param Item_Model $target Target item (must be an album * @return ORM_MTPP */ - function moveTo($target) { + function move_to($target) { $this->lock(); try { $original_path = $this->file_path(); $original_resize_path = $this->resize_path(); $original_thumbnail_path = $this->thumbnail_path(); - parent::moveTo($target, true); + parent::move_to($target, true); rename($original_path, $this->file_path()); if (file_exists($original_resize_path)) { |