From b550a060450923b5c02d531d33785b5c9eb0d3e9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 10 Sep 2009 10:08:29 -0700 Subject: Rename $album to $target in move_to() --- modules/organize/controllers/organize.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 99563327..1fec6c9b 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -41,14 +41,14 @@ class Organize_Controller extends Controller { "sort_order" => $album->sort_order)); } - function move_to($album_id) { + function move_to($target_album_id) { access::verify_csrf(); - $album = ORM::factory("item", $album_id); + $target_album = ORM::factory("item", $target_album_id); foreach ($this->input->post("source_ids") as $source_id) { $source = ORM::factory("item", $source_id); - if (!$source->is_descendant($album)) { - item::move($source, $album); + if (!$source->is_descendant($target_album_)) { + item::move($source, $target_album); } } -- cgit v1.2.3