]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/response/class_ImageResponse.php
Constants PATH and _DB_TYPE replaced
[shipsimu.git] / inc / classes / main / response / class_ImageResponse.php
index abf349150c8c92cd72b2479cfbcb804414d23995..71acb351dd53803c24d3d6006caaa71f12281abc 100644 (file)
@@ -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/");