diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-23 22:08:29 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-23 22:08:29 -0700 |
| commit | 50d6cc0150b930d79d3e8b90956ffa9655fcc9c5 (patch) | |
| tree | d2a90c14bb7d5e807037909b6005f4b7a9aeab73 /modules/gallery/controllers/albums.php | |
| parent | 5c8a2a750ccc16b5e8b0dd97ff21dbfb9860d856 (diff) | |
| parent | 078c77a62b623322956457bfd7bfbdaf56203b00 (diff) | |
Merge branch 'master' of git@github.com:/gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/albums.php')
| -rw-r--r-- | modules/gallery/controllers/albums.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php index 56b74cb1..4fefd3a1 100644 --- a/modules/gallery/controllers/albums.php +++ b/modules/gallery/controllers/albums.php @@ -166,7 +166,8 @@ class Albums_Controller extends Items_Controller { access::required("view", $album); access::required("edit", $album); - $form = album::get_edit_form($album); + $view = album::get_edit_form($album); + $form = $view->form; if ($valid = $form->validate()) { // Make sure that there's not a conflict if ($album->id != 1 && @@ -202,7 +203,7 @@ class Albums_Controller extends Items_Controller { } else { print json_encode( array("result" => "error", - "form" => $form->__toString())); + "form" => $view->__toString())); } } |
