From a444747fabdb62d1cc4539ffa4acf4fc5ec1b459 Mon Sep 17 00:00:00 2001 From: Gregory Pradun Date: Sat, 18 Jun 2022 00:44:51 +0300 Subject: [PATCH] LAW-5539 --- htdocs/wp-content/themes/lawcarta/functions.php | 2 +- htdocs/wp-content/themes/lawcarta/header.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/wp-content/themes/lawcarta/functions.php b/htdocs/wp-content/themes/lawcarta/functions.php index 28faae5..8735961 100644 --- a/htdocs/wp-content/themes/lawcarta/functions.php +++ b/htdocs/wp-content/themes/lawcarta/functions.php @@ -357,7 +357,7 @@ function mark_redirected_user(){ if( isset($_GET['law']) && $_GET['law'] == 1 - && ((isset($_COOKIE['cookie_level']) && in_array($_COOKIE['cookie_level'], ['12', '123'])) || LC_ALLOW_COOKIE_POPUP == false) + && ((isset($_COOKIE['cookie_level']) &&(strpos($_COOKIE['cookie_level'], '2') !== false)) || LC_ALLOW_COOKIE_POPUP == false) ){ $cookieDomain = (LAWCARTA_ENVIRONMENT_NAME == 'local') ? 'livecarta.loc' : 'livecarta.com'; setcookie('law_'.LAWCARTA_ENVIRONMENT_NAME, 1,0,"/", $cookieDomain); diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index c7f8510..bd8792c 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -57,7 +57,7 @@ $scripts = []; })(window,document,'script','dataLayer','".LC_GTM."');"]; ?> 'comment', 'source' =>'End Google Tag Manager']; ?>