From: Roland Häder Date: Tue, 6 Mar 2018 21:55:16 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=2f930fd62f97e06a6b90afb971cce6343522f9b9 Continued: - need to invoke $responseInstance->initWebOutputInstance() to initialize the web output instance, but not in console responses ... The old-lost code at my shipping-company simulator did this. Signed-off-by: Roland Häder --- diff --git a/framework/main/classes/response/html/class_HtmlResponse.php b/framework/main/classes/response/html/class_HtmlResponse.php index 03815a9e..46f7bc3d 100644 --- a/framework/main/classes/response/html/class_HtmlResponse.php +++ b/framework/main/classes/response/html/class_HtmlResponse.php @@ -54,6 +54,9 @@ class HtmlResponse extends BaseResponse implements Responseable { // Get a new instance $responseInstance = new HtmlResponse(); + // Init web output instance + $responseInstance->initWebOutputInstance(); + // Return the prepared instance return $responseInstance; } diff --git a/framework/main/classes/response/image/class_ImageResponse.php b/framework/main/classes/response/image/class_ImageResponse.php index a2fc7a06..976fe75e 100644 --- a/framework/main/classes/response/image/class_ImageResponse.php +++ b/framework/main/classes/response/image/class_ImageResponse.php @@ -54,6 +54,9 @@ class ImageResponse extends BaseResponse implements Responseable { // Get a new instance $responseInstance = new ImageResponse(); + // Init web output instance + $responseInstance->initWebOutputInstance(); + // Return the prepared instance return $responseInstance; }