Change detect mobile

This commit is contained in:
Michael RICOIS 2017-08-09 10:51:49 +02:00
parent ddbbaa9669
commit d3fa5bfffa

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)) {