X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclasses%2Fmain%2Fresponse%2Fclass_BaseResponse.php;h=986ef5cce0cb8cbe38411efc9b2c0c94603236c7;hb=4b88c118b615335d06bd74e444173d21aef4406c;hp=1bbf57483465cb006eaf66ceb4538295f7c3425a;hpb=c6d73b0e3246efc824cb98338d4be7ee5bc9f308;p=core.git diff --git a/inc/classes/main/response/class_BaseResponse.php b/inc/classes/main/response/class_BaseResponse.php index 1bbf5748..986ef5cc 100644 --- a/inc/classes/main/response/class_BaseResponse.php +++ b/inc/classes/main/response/class_BaseResponse.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -43,7 +43,7 @@ class BaseResponse extends BaseFrameworkSystem { /** * Body of the response */ - private $responseBody = ""; + private $responseBody = ''; /** * Instance of the template engine @@ -64,10 +64,6 @@ class BaseResponse extends BaseFrameworkSystem { protected function __construct ($className) { // Call parent constructor parent::__construct($className); - - // Clean up a little - $this->removeNumberFormaters(); - $this->removeSystemArray(); } /** @@ -170,7 +166,7 @@ class BaseResponse extends BaseFrameworkSystem { $this->addHeader('Pragma', 'no-cache'); // HTTP/1.0 // Define the charset to be used - //$this->addHeader('Content-type:', sprintf("text/html; charset=%s", $this->getConfigInstance()->readConfig('header_charset'))); + //$this->addHeader('Content-type:', sprintf("text/html; charset=%s", $this->getConfigInstance()->getConfigEntry('header_charset'))); // Send all headers foreach ($this->responseHeaders as $name => $value) { @@ -181,7 +177,7 @@ class BaseResponse extends BaseFrameworkSystem { // Send cookies out? if (count($this->cookies) > 0) { // Send all cookies - $cookieString = implode(" ", $this->cookies); + $cookieString = implode(' ', $this->cookies); header("Set-Cookie: {$cookieString}"); // Remove them all @@ -202,7 +198,7 @@ class BaseResponse extends BaseFrameworkSystem { } // Clear response header and body - $this->setResponseBody(""); + $this->setResponseBody(''); $this->resetResponseHeaders(); } }