Changeset 107791 in spip-zone


Ignore:
Timestamp:
Nov 30, 2017, 7:08:42 AM (16 months ago)
Author:
pierrekuhn82@…
Message:

Version 0.5.3 : Notice en moins si on a pas les plugins.

Location:
_plugins_/google_analytics/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/google_analytics/trunk/googleanalytics_insert_head.php

    r107628 r107791  
    3434        include_spip('inc/config');
    3535        $id_google = lire_config('googleanalytics/idGoogle');
    36         if (isset($_COOKIE["cb-enabled"])) $cookiebar = $_COOKIE["cb-enabled"];
    37         if (isset($_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') {
  • _plugins_/google_analytics/trunk/paquet.xml

    r107628 r107791  
    22        prefix="googleanalytics"
    33        categorie="statistique"
    4         version="0.5.2"
     4        version="0.5.3"
    55        etat="stable"
    66        compatibilite="[1.9.2;3.2.*]"
  • _plugins_/google_analytics/trunk/plugin.xml

    r107628 r107791  
    33        <slogan>Utiliser le service Google Analytics</slogan>
    44        <auteur>Phil</auteur>
    5         <version>0.5.2</version>
     5        <version>0.5.3</version>
    66        <etat>stable</etat>
    77        <licence>GNU/GPL</licence>
Note: See TracChangeset for help on using the changeset viewer.