From: Ben Klang Date: Thu, 4 Mar 2010 15:42:25 +0000 (-0500) Subject: Shout: Use a private output buffer for form (thanks mrubinsk) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6d08572ae447c1088c23a7b3da85e538fa882c30;p=horde.git Shout: Use a private output buffer for form (thanks mrubinsk) --- diff --git a/shout/lib/Ajax/Application.php b/shout/lib/Ajax/Application.php index f79574303..1964a80d9 100644 --- a/shout/lib/Ajax/Application.php +++ b/shout/lib/Ajax/Application.php @@ -154,10 +154,15 @@ class Shout_Ajax_Application extends Horde_Ajax_Application_Base $info['required'], $info['readonly'], $info['description'], $info['params']); } + $this->_responseType = 'html'; + + // Catch and return the output from $form->renderActive() + ob_start(); $form->renderActive(null, null, 'javascript:saveAction()'); $output = ob_get_clean(); return $output; + } catch (Exception $e) { //FIXME: Create a way to notify the user of the failure. Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR);