1
0

Updated to reflect change in

dbf3199e46
where forms are now sent back as JSON instead of HTML.
This commit is contained in:
Bharat Mediratta 2010-07-13 13:04:03 -07:00
parent c1201d31ad
commit d1fa017b44

View File

@ -26,7 +26,7 @@ class Html_Uploader_Controller extends Controller {
$album = $album->parent(); $album = $album->parent();
} }
print $this->_get_add_form($album); print json_encode(array("form" => (string) $this->_get_add_form($album)));
} }
public function add($id) { public function add($id) {
@ -66,7 +66,7 @@ class Html_Uploader_Controller extends Controller {
html::anchor("photos/$item->id", t("view photo"))); html::anchor("photos/$item->id", t("view photo")));
} }
module::event("add_photos_form_completed", $item, $form); module::event("add_photos_form_completed", $item, $form);
} catch (Exception $e) { } catch (Exception $e) {
// Lame error handling for now. Just record the exception and move on // Lame error handling for now. Just record the exception and move on
Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString()); Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());