From 8e5135e391ee5a684affbd2fb50e8d386cab93b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Schr=C3=B6der?= Date: Wed, 6 Jul 2016 13:56:40 +0200 Subject: [PATCH 1/2] switch to ssl shop url if shop is in ssl mode --- core/toxidcurl.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/toxidcurl.php b/core/toxidcurl.php index 91037b1..43332f1 100644 --- a/core/toxidcurl.php +++ b/core/toxidcurl.php @@ -422,7 +422,11 @@ protected function _rewriteUrls($sContent, $iLangId = null, $blMultiLang = false } foreach ($aLanguages as $iLangId) { - $sShopUrl = $this->getConfig()->getShopUrl(); + if( $this->getConfig()->isSssl() ){ + $sShopUrl = $this->getConfig()->getSslShopUrl(); + }else{ + $sShopUrl = $this->getConfig()->getShopUrl(); + } if (substr($sShopUrl, -1) !== '/') { $sShopUrl = $sShopUrl . '/'; From b9786419da21099db3d69523e5c03e463826a11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Schr=C3=B6der?= Date: Thu, 7 Jul 2016 09:40:59 +0200 Subject: [PATCH 2/2] fixed fnc call :) --- core/toxidcurl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/toxidcurl.php b/core/toxidcurl.php index 43332f1..c0b8617 100644 --- a/core/toxidcurl.php +++ b/core/toxidcurl.php @@ -422,7 +422,7 @@ protected function _rewriteUrls($sContent, $iLangId = null, $blMultiLang = false } foreach ($aLanguages as $iLangId) { - if( $this->getConfig()->isSssl() ){ + if( $this->getConfig()->isSsl() ){ $sShopUrl = $this->getConfig()->getSslShopUrl(); }else{ $sShopUrl = $this->getConfig()->getShopUrl();