summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-05-15 16:00:46 -0700
committerBharat Mediratta <bharat@menalto.com>2012-05-15 16:00:46 -0700
commit891652b233df120464d8fe7d3ca80c5091681dea (patch)
treeaa23444f902417b9e5bad8a768144da691af2313 /modules/gallery/controllers
parent82be903527a679f296be58916b6c68a5c410d010 (diff)
Send back form errors wrapped in JSON. Fixes #1867.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/albums.php2
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));
}
}