X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresponse%2Fimage%2Fclass_ImageResponse.php;h=3cd50146d77d4307dca372598466260362d2da48;hb=eb23105bef52d3bf706abe6f225170d8e143339e;hp=0fa0e96149de70b07309e3a816d6a26a87dd1527;hpb=fdc6a02b5e6c2155cda61fcc345c7583b734ab85;p=core.git diff --git a/inc/classes/main/response/image/class_ImageResponse.php b/inc/classes/main/response/image/class_ImageResponse.php index 0fa0e961..3cd50146 100644 --- a/inc/classes/main/response/image/class_ImageResponse.php +++ b/inc/classes/main/response/image/class_ImageResponse.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -33,6 +33,9 @@ class ImageResponse extends BaseResponse implements Responseable { protected function __construct () { // Call parent constructor parent::__construct(__CLASS__); + + // Set response type + $this->setResponseType('image'); } /** @@ -66,7 +69,7 @@ class ImageResponse extends BaseResponse implements Responseable { $cfg = $this->getConfigInstance(); // Set new template engine - $cfg->setConfigEntry('web_template_class' , $cfg->getConfigEntry('image_template_class')); + $cfg->setConfigEntry('html_template_class' , $cfg->getConfigEntry('image_template_class')); $cfg->setConfigEntry('raw_template_extension' , '.img'); $cfg->setConfigEntry('code_template_extension', '.xml'); $cfg->setConfigEntry('tpl_base_path' , 'templates/images/'); @@ -230,16 +233,6 @@ class ImageResponse extends BaseResponse implements Responseable { $this->addCookie($cookieName, $_COOKIE[$cookieName], FALSE); } // END - if } - - /** - * Getter for default command - * - * @return $defaultCommand Default command for this response - */ - public function getDefaultCommand () { - $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_image_command'); - return $defaultCommand; - } } // [EOF]