diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-23 12:02:35 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-23 12:02:35 -0700 |
commit | b79129e3651a92250b61a501b8c6a1d53bf4928c (patch) | |
tree | 54adc8a3842e738a427494b1f1a4b6b4e7dbaff3 /modules/gallery/controllers | |
parent | d3b55622827adbb9d9ab36a9947b45e0d49aec78 (diff) |
Clone the photo::get_edit_form to the movies helper and use it to generate the movie edit form. Fixes ticket #726.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/movies.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index fa07668e..2a917c58 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -60,7 +60,7 @@ class Movies_Controller extends Items_Controller { access::required("view", $movie); access::required("edit", $movie); - $form = photo::get_edit_form($movie); + $form = movie::get_edit_form($movie); if ($valid = $form->validate()) { if ($form->edit_item->filename->value != $movie->name || $form->edit_item->slug->value != $movie->slug) { @@ -114,6 +114,6 @@ class Movies_Controller extends Items_Controller { public function _form_edit($movie) { access::required("view", $movie); access::required("edit", $movie); - print photo::get_edit_form($movie); + print movie::get_edit_form($movie); } } |