Changeset 58897 in spip-zone


Ignore:
Timestamp:
Feb 28, 2012, 3:18:22 PM (8 years ago)
Author:
fil@…
Message:

tester typeof $ pour éviter une erreur undefined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/statsjs/statsjs_pipelines.php

    r48850 r58897  
    33function statsjs_affichage_final($page) {
    44
    5         if (!$GLOBALS['html']) return $page;
     5#if ($_GET['aa']) {var_dump($GLOBALS['contexte']['page']);exit;}
     6
     7        if (!$GLOBALS['html']
     8        ) return $page;
    69
    710        // Identification automagique de l'element
     
    4649<!-- MOUCHARD STATS SPIP -->
    4750<script type='text/javascript'>
     51if (typeof $ == 'function')
    4852$(function(){setTimeout(function(){
    4953  $.ajax({url: '${urljs}', dataType: 'script', cache: true,
Note: See TracChangeset for help on using the changeset viewer.