diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-10 10:08:29 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-10 10:08:29 -0700 |
commit | b550a060450923b5c02d531d33785b5c9eb0d3e9 (patch) | |
tree | 95142e870366ae42294bf457333404fad872a1dd | |
parent | 2bbe162339075d385431029c713c48c9f6b92639 (diff) |
Rename $album to $target in move_to()
-rw-r--r-- | modules/organize/controllers/organize.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |