diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-10 03:28:13 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-10 03:28:13 +0000 |
commit | 9d8d1153877a9ae889d0617c2e8dff27ad37ce2f (patch) | |
tree | 95d93a62dcab239c862fb06dec580feec4312dca | |
parent | f0549a1c2d5c3031e99ed3e2378749eecca235cb (diff) |
Show the album edit form for albums, not the photo edit form
-rw-r--r-- | core/controllers/quick.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/controllers/quick.php b/core/controllers/quick.php index 96f05aab..1b6e2bf8 100644 --- a/core/controllers/quick.php +++ b/core/controllers/quick.php @@ -122,7 +122,11 @@ class Quick_Controller extends Controller { public function form_edit($id) { $item = ORM::factory("item", $id); access::required("edit", $item); - $form = photo::get_edit_form($item); + if ($item->is_album()) { + $form = album::get_edit_form($item); + } else { + $form = photo::get_edit_form($item); + } print $form; } } |