Framework: allow 'html' HTTP response type to be used like the 'json' type
authorBen Klang <ben@alkaloid.net>
Thu, 4 Mar 2010 01:41:44 +0000 (20:41 -0500)
committerBen Klang <ben@alkaloid.net>
Thu, 4 Mar 2010 01:41:44 +0000 (20:41 -0500)
framework/Core/lib/Horde.php

index 10ba230..aa6b817 100644 (file)
@@ -670,8 +670,9 @@ HTML;
         case 'html':
         case 'plain':
         case 'xml':
+            $s_data = $data->response;
             header('Content-Type: text/' . $ct . '; charset=' . $charset);
-            echo $data;
+            echo $s_data;
             break;
 
         default: