summaryrefslogtreecommitdiff
path: root/modules/tag/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/tag/controllers
parent82be903527a679f296be58916b6c68a5c410d010 (diff)
Send back form errors wrapped in JSON. Fixes #1867.
Diffstat (limited to 'modules/tag/controllers')
-rw-r--r--modules/tag/controllers/admin_tags.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index ff69ad94..515b6891 100644
--- a/modules/tag/controllers/admin_tags.php
+++ b/modules/tag/controllers/admin_tags.php
@@ -58,7 +58,7 @@ class Admin_Tags_Controller extends Admin_Controller {
json::reply(array("result" => "success", "location" => url::site("admin/tags")));
} else {
- print $form;
+ json::reply(array("result" => "error", "html" => (string)$form));
}
}