Merge pull request #330 from DrySs/patch-5
[-] FO: CMS link to conditions should not be in SSL
This commit is contained in:
@@ -493,7 +493,7 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
$address_delivery = new Address($this->context->cart->id_address_delivery);
|
$address_delivery = new Address($this->context->cart->id_address_delivery);
|
||||||
|
|
||||||
$cms = new CMS(Configuration::get('PS_CONDITIONS_CMS_ID'), $this->context->language->id);
|
$cms = new CMS(Configuration::get('PS_CONDITIONS_CMS_ID'), $this->context->language->id);
|
||||||
$link_conditions = $this->context->link->getCMSLink($cms, $cms->link_rewrite, true);
|
$link_conditions = $this->context->link->getCMSLink($cms, $cms->link_rewrite);
|
||||||
if (!strpos($link_conditions, '?'))
|
if (!strpos($link_conditions, '?'))
|
||||||
$link_conditions .= '?content_only=1';
|
$link_conditions .= '?content_only=1';
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ class ParentOrderControllerCore extends FrontController
|
|||||||
|
|
||||||
// TOS
|
// TOS
|
||||||
$cms = new CMS(Configuration::get('PS_CONDITIONS_CMS_ID'), $this->context->language->id);
|
$cms = new CMS(Configuration::get('PS_CONDITIONS_CMS_ID'), $this->context->language->id);
|
||||||
$this->link_conditions = $this->context->link->getCMSLink($cms, $cms->link_rewrite, false);
|
$this->link_conditions = $this->context->link->getCMSLink($cms, $cms->link_rewrite);
|
||||||
if (!strpos($this->link_conditions, '?'))
|
if (!strpos($this->link_conditions, '?'))
|
||||||
$this->link_conditions .= '?content_only=1';
|
$this->link_conditions .= '?content_only=1';
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user