diff options
| author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-25 13:59:04 +0200 | 
|---|---|---|
| committer | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-25 13:59:04 +0200 | 
| commit | 0aa3ec3ae90a101b2bfc1b395a1749551da22287 (patch) | |
| tree | 02702942bc27e0e4e7b634a56cd35b71cb35fecc /modules/gallery/controllers | |
| parent | b181707c1651af8737c2e6ff550fd20f480b781b (diff) | |
| parent | 50d6cc0150b930d79d3e8b90956ffa9655fcc9c5 (diff) | |
Merge commit 'upstream/master'
Diffstat (limited to 'modules/gallery/controllers')
| -rw-r--r-- | modules/gallery/controllers/albums.php | 5 | ||||
| -rw-r--r-- | modules/gallery/controllers/movies.php | 5 | ||||
| -rw-r--r-- | modules/gallery/controllers/photos.php | 5 | 
3 files changed, 9 insertions, 6 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()));      }    } diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index c8227d74..1391c4b4 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -70,7 +70,8 @@ class Movies_Controller extends Items_Controller {      access::required("view", $photo);      access::required("edit", $photo); -    $form = photo::get_edit_form($photo); +    $view = photo::get_edit_form($photo); +    $form = $view->form;      if ($valid = $form->validate()) {        // Make sure that there's not a conflict        if (Database::instance() @@ -101,7 +102,7 @@ class Movies_Controller extends Items_Controller {      } else {        print json_encode(          array("result" => "error", -              "form" => $form->__toString())); +              "form" => $view->__toString()));      }    } diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php index 8ee24da8..9d9b25a1 100644 --- a/modules/gallery/controllers/photos.php +++ b/modules/gallery/controllers/photos.php @@ -61,7 +61,8 @@ class Photos_Controller extends Items_Controller {      access::required("view", $photo);      access::required("edit", $photo); -    $form = photo::get_edit_form($photo); +    $view = photo::get_edit_form($photo); +    $form = $view->form;      if ($valid = $form->validate()) {        if ($form->edit_item->filename->value != $photo->name) {          // Make sure that there's not a conflict @@ -94,7 +95,7 @@ class Photos_Controller extends Items_Controller {      } else {        print json_encode(          array("result" => "error", -              "form" => $form->__toString())); +              "form" => $view->__toString()));      }    } | 
