]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/response/image/class_ImageResponse.php
Continued:
[core.git] / framework / main / classes / response / image / class_ImageResponse.php
index 13101d9e0faf9f926af30d90518f4292663e5a60..976fe75e2cef8ba104e1dc520ed17c044b6a9cbf 100644 (file)
@@ -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;
        }
@@ -141,7 +144,7 @@ class ImageResponse extends BaseResponse implements Responseable {
         */
        public function redirectToConfiguredUrl ($configEntry) {
                // Get application instance
-               $applicationInstance = GenericRegistry::getRegistry()->getInstance('app');
+               $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
 
                // Is the header not yet sent?
                if (headers_sent()) {