diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-05-15 16:00:46 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-05-15 16:00:46 -0700 |
commit | 891652b233df120464d8fe7d3ca80c5091681dea (patch) | |
tree | aa23444f902417b9e5bad8a768144da691af2313 /modules/gallery | |
parent | 82be903527a679f296be58916b6c68a5c410d010 (diff) |
Send back form errors wrapped in JSON. Fixes #1867.
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/controllers/albums.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php index b2ec0700..9b968871 100644 --- a/modules/gallery/controllers/albums.php +++ b/modules/gallery/controllers/albums.php @@ -133,7 +133,7 @@ class Albums_Controller extends Items_Controller { json::reply(array("result" => "success", "location" => $album->url())); } else { - print $form; + json::reply(array("result" => "error", "html" => (string)$form)); } } |