More patches as part of #1225. Change the 'core' modules to use the json::reply

method to set the content type header and encode the response as a json object
This commit is contained in:
Tim Almdal
2010-07-21 21:30:13 -07:00
committed by Bharat Mediratta
parent 89d18c0714
commit 91a2c04a24
27 changed files with 84 additions and 100 deletions

View File

@@ -26,7 +26,7 @@ class Uploader_Controller extends Controller {
$item = $item->parent();
}
print json_encode(array("form" => (string)$this->_get_add_form($item)));
json::reply(array("form" => (string)$this->_get_add_form($item)));
//print $this->_get_add_form($item);
}
@@ -106,7 +106,7 @@ class Uploader_Controller extends Controller {
access::verify_csrf();
batch::stop();
print json_encode(array("result" => "success"));
json::reply(array("result" => "success"));
}
private function _get_add_form($album) {