mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-01 09:19:09 -04:00
Show the album edit form for albums, not the photo edit form
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user