diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-31 18:32:24 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-31 18:32:24 -0800 |
commit | ee1a032e4dec8dcb85702ac2c30807345feaa7e6 (patch) | |
tree | d487969c510ebf301bd994ef86dc23ae569d04e8 /modules/gallery/controllers/quick.php | |
parent | 40d496edeef614f7f3bc55d2fb178ea581dcd9f6 (diff) | |
parent | 25f936e1edc8c47a789b423b9cadbe071a65256d (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r-- | modules/gallery/controllers/quick.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php index 7f1ad43b..7f9a9826 100644 --- a/modules/gallery/controllers/quick.php +++ b/modules/gallery/controllers/quick.php @@ -133,13 +133,21 @@ class Quick_Controller extends Controller { switch ($item->type) { case "album": - return print album::get_edit_form($item); + $form = album::get_edit_form($item); + break; case "photo": - return print photo::get_edit_form($item); + $form = photo::get_edit_form($item); + break; case "movie": - return print movie::get_edit_form($item); + $form = movie::get_edit_form($item); + break; } + + // Pass on the source item where this form was generated, so we have an idea where to return to. + $form->hidden("from_id")->value((int)Input::instance()->get("from_id", 0)); + + print $form; } } |