From 055aa044977fdb608547bca2f39b79abe31beabe Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 7 Dec 2008 08:23:22 +0000 Subject: Rename moveTo to move_to and extend the test a bit. --- core/models/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/models') 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)) { -- cgit v1.2.3