Browse Source

compatible 4.0

grille_question
Maïeul 2 years ago
parent
commit
3f60f88b8a
  1. 6
      formidable_ts_pipelines.php
  2. 2
      paquet.xml

6
formidable_ts_pipelines.php

@ -23,7 +23,11 @@ function formidable_ts_affiche_gauche($flux) {
$boite_fermer = boite_fermer();
$url = parametre_url(generer_url_ecrire('formidable_ts'),'id_formulaire',$id_formulaire);
$url = parametre_url($url, 'statut', 'publie');
$lien = icone_horizontale(_T('formidable_ts:tableau_reponses'), $url, 'formulaire-reponses-24');
if (_SPIP_VERSION_ID < 40000) {
$lien = icone_horizontale(_T('formidable_ts:tableau_reponses'), $url, 'formulaire-reponses-24');
} else {
$lien = icone_horizontale(_T('formidable_ts:tableau_reponses'), $url, 'formulaires_reponses-24');
}
$flux['data'] = str_replace($boite_fermer,"$lien\n\r$boite_fermer", $flux['data']);
}
return $flux;

2
paquet.xml

@ -3,7 +3,7 @@
categorie="communication"
version="2.0.8"
etat="stable"
compatibilite="[3.1.0;3.2.*]"
compatibilite="[3.1.0;4.0.*]"
documentation="https://contrib.spip.net/5211"
schema="1"
>

Loading…
Cancel
Save