X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fresponse%2Fimage%2Fclass_ImageResponse.php;h=d8531206d913a264a149401bba1db4a0cca795fb;hp=20528034dc56c0d05e4d6ac2439b5614cf6803aa;hb=08a0c865dd2c8ee0b6dbf96f4f07e9ee0ce0f02b;hpb=3ed365cb1808ac8a228da18241e789866f419178 diff --git a/framework/main/classes/response/image/class_ImageResponse.php b/framework/main/classes/response/image/class_ImageResponse.php index 20528034..d8531206 100644 --- a/framework/main/classes/response/image/class_ImageResponse.php +++ b/framework/main/classes/response/image/class_ImageResponse.php @@ -15,7 +15,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable; * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2021 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -118,7 +118,7 @@ class ImageResponse extends BaseResponse implements Responseable { // Get all config entries if (is_null($expires)) { $expires = (time() + FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cookie_expire')); - } // END - if + } $path = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cookie_path'); $domain = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cookie_domain'); @@ -152,7 +152,7 @@ class ImageResponse extends BaseResponse implements Responseable { if (headers_sent()) { // Throw an exception here throw new ResponseHeadersAlreadySentException($this, self::EXCEPTION_HEADERS_ALREADY_SENT); - } // END - if + } // Assign application data $this->getTemplateInstance()->assignApplicationData($applicationInstance); @@ -170,7 +170,7 @@ class ImageResponse extends BaseResponse implements Responseable { // No, then extend it with our base URL $url = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('base_url') . '/' . $url; - } // END - if + } // Add redirect header $this->addHeader('Location', str_replace('&', '&', $url)); @@ -226,7 +226,7 @@ class ImageResponse extends BaseResponse implements Responseable { // Remove it from array unset($_COOKIE[$cookieName]); - } // END - if + } } /** @@ -240,7 +240,7 @@ class ImageResponse extends BaseResponse implements Responseable { if (isset($_COOKIE[$cookieName])) { // Update the cookie $this->addCookie($cookieName, $_COOKIE[$cookieName], false); - } // END - if + } } }