mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
don't use 1.7 controllers lifecycle
This commit is contained in:
parent
06fcce2dec
commit
7db8ff5044
@ -53,18 +53,7 @@ class RetailcrmConsultantModuleFrontController extends ModuleFrontController
|
||||
header('Content-Type: application/json');
|
||||
}
|
||||
|
||||
if (Tools::substr(_PS_VERSION_, 0, 3) == '1.6') {
|
||||
echo $response;
|
||||
} else {
|
||||
try {
|
||||
parent::initContent();
|
||||
$this->ajaxRender($response);
|
||||
} catch (\Exception $exception) {
|
||||
// Sometimes ps_shoppingcart throws exception which breaks our controller.
|
||||
// We don't care about ps_shoppingcart here, so, we will fallback to old way.
|
||||
echo $response;
|
||||
}
|
||||
}
|
||||
echo $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -53,18 +53,7 @@ class RetailcrmDaemonCollectorModuleFrontController extends ModuleFrontControlle
|
||||
header('Content-Type: application/json');
|
||||
}
|
||||
|
||||
if (Tools::substr(_PS_VERSION_, 0, 3) == '1.6') {
|
||||
echo $response;
|
||||
} else {
|
||||
try {
|
||||
parent::initContent();
|
||||
$this->ajaxRender($response);
|
||||
} catch (\Exception $exception) {
|
||||
// Sometimes ps_shoppingcart throws exception which breaks our controller.
|
||||
// We don't care about ps_shoppingcart here, so, we will fallback to old way.
|
||||
echo $response;
|
||||
}
|
||||
}
|
||||
echo $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -53,18 +53,7 @@ class RetailcrmJobsModuleFrontController extends ModuleFrontController
|
||||
header('Content-Type: application/json');
|
||||
}
|
||||
|
||||
if (Tools::substr(_PS_VERSION_, 0, 3) == '1.6') {
|
||||
echo $response;
|
||||
} else {
|
||||
try {
|
||||
parent::initContent();
|
||||
$this->ajaxRender($response);
|
||||
} catch (\Exception $exception) {
|
||||
// Sometimes ps_shoppingcart throws exception which breaks our controller.
|
||||
// We don't care about ps_shoppingcart here, so, we will fallback to old way.
|
||||
echo $response;
|
||||
}
|
||||
}
|
||||
echo $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user