getDefaultCommand() is now moved to BaseResponse.
[core.git] / inc / classes / main / response / html / class_HtmlResponse.php
index 4a3da75b7535f20374e519730f2288386ffd685f..ad5af0772fc037da3c8f52beeea572c045580448 100644 (file)
@@ -33,6 +33,9 @@ class HtmlResponse extends BaseResponse implements Responseable {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // Set response type
+               $this->setResponseType('image');
        }
 
        /**
@@ -202,16 +205,6 @@ class HtmlResponse 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_html_command');
-               return $defaultCommand;
-       }
 }
 
 // [EOF]