X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresponse%2Fclass_ImageResponse.php;h=71acb351dd53803c24d3d6006caaa71f12281abc;hp=abf349150c8c92cd72b2479cfbcb804414d23995;hb=a2cc983f5fe910115d25800c258875a3919fb143;hpb=5c3d5d84f8f862d0d51f095f9858860f86788ae8 diff --git a/inc/classes/main/response/class_ImageResponse.php b/inc/classes/main/response/class_ImageResponse.php index abf3491..71acb35 100644 --- a/inc/classes/main/response/class_ImageResponse.php +++ b/inc/classes/main/response/class_ImageResponse.php @@ -64,12 +64,6 @@ class ImageResponse extends BaseFrameworkSystem implements Responseable { // Call parent constructor parent::__construct(__CLASS__); - // Set part description - $this->setObjectDescription("HTTP response"); - - // Create unique ID number - $this->generateUniqueId(); - // Clean up a little $this->removeNumberFormaters(); $this->removeSystemArray(); @@ -151,6 +145,7 @@ class ImageResponse extends BaseFrameworkSystem implements Responseable { * @param $force Wether we shall force the output or abort if headers are * already sent with an exception * @return void + * @todo Add support for fatal messages in image response * @throws ResponseHeadersAlreadySentException Thrown if headers are * already sent */ @@ -216,7 +211,7 @@ class ImageResponse extends BaseFrameworkSystem implements Responseable { $cfg = $this->getConfigInstance(); // Set new template engine - $cfg->setConfigEntry('template_class' , "ImageTemplateEngine"); + $cfg->setConfigEntry('template_class' , $cfg->readConfig('image_template_class')); $cfg->setConfigEntry('raw_template_extension' , ".img"); $cfg->setConfigEntry('code_template_extension', ".itp"); $cfg->setConfigEntry('tpl_base_path' , "templates/images/");