diff --git a/gamutable_pipelines.php b/gamutable_pipelines.php index e782aeb..7167bae 100644 --- a/gamutable_pipelines.php +++ b/gamutable_pipelines.php @@ -28,12 +28,14 @@ function gamutable_affichage_final($flux) { include_spip('inc/autoriser'); if (autoriser("purger","gamutable") and test_plugin_actif('minibando')) { $p = stripos($flux, ''); - $url_relecture = parametre_url(self(), 'var_mode', 'gamutable', '&'); - $label = "Mode gamuTable"; - $js .= "jQuery('#minibando_bouton_debug ul').append('
  • $label
  • ');"; - $js = "jQuery(function(){ $js });"; - $js = ""; - $flux = substr_replace($flux, $js, $p, 0); + if ($p) { + $url_relecture = parametre_url(self(), 'var_mode', 'gamutable', '&'); + $label = "Mode gamuTable"; + $js .= "jQuery('#minibando_bouton_debug ul').append('
  • $label
  • ');"; + $js = "jQuery(function(){ $js });"; + $js = ""; + $flux = substr_replace($flux, $js, $p, 0); + } } return $flux; }