From 891652b233df120464d8fe7d3ca80c5091681dea Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 15 May 2012 16:00:46 -0700 Subject: Send back form errors wrapped in JSON. Fixes #1867. --- modules/gallery/controllers/albums.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery/controllers') 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)); } } -- cgit v1.2.3