Ignore:
Timestamp:
Nov 30, 2017, 7:09:31 AM (3 years ago)
Author:
pierrekuhn82@…
Message:

Version 0.5.3 : report sur la branche zip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/google_analytics/branches/v0/googleanalytics_insert_head.php

    r105532 r107792  
    3434        include_spip('inc/config');
    3535        $id_google = lire_config('googleanalytics/idGoogle');
    36         $cookiebar = $_COOKIE["cb-enabled"];
    37         if ($_COOKIE["displayCookieConsent"] != '') {
    38                 $displayCookieConsent = $_COOKIE["displayCookieConsent"];
    39         } else {
    40                 $displayCookieConsent = 'y';
    41         }
     36        $cookiebar = (isset($_COOKIE["cb-enabled"]) ? $_COOKIE["cb-enabled"] : '');
     37        $displayCookieConsent = (isset($_COOKIE["displayCookieConsent"]) ? $_COOKIE["displayCookieConsent"] : 'y');
    4238        if ($id_google
    4339          AND $id_google !== '_'
    44           AND (strncmp($id_google,"UA-xxx",6)!=0)
     40          AND (strncmp($id_google,"UA-xxx",6) != '0')
    4541          AND $cookiebar !== 'declined'
    4642          AND $displayCookieConsent === 'y') {
Note: See TracChangeset for help on using the changeset viewer.