Compare commits

...

1 Commits

Author SHA1 Message Date
Michael RICOIS
d3fa5bfffa Change detect mobile 2017-08-09 10:51:49 +02:00

View File

@ -39,7 +39,7 @@ class FrontController extends FrontControllerCore
public function init()
{
// Detection provenance campagne email depuis mobile et non connecté
if ($this->context->mobile_detect->isMobile() && !Customer::isLogged()){
if ($this->context->getMobileDevice() && !Customer::isLogged()){
$popup = Tools::getValue('popup');
$source = Tools::getValue('source');
if ($popup == 1 && !empty($source)) {