diff --git a/plugin.xml b/plugin.xml index 7f3550b..612ed19 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ Statistiques Collectif SPIP - 0.1 + 0.1.1 0.1 dev diff --git a/stats_autoriser.php b/stats_autoriser.php index 11dbbc7..c76fda6 100644 --- a/stats_autoriser.php +++ b/stats_autoriser.php @@ -4,10 +4,10 @@ function stats_autoriser(){} function autoriser_statistiques_bouton_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){ - return $GLOBALS['visiteur_session']['statut']=='0minirezo'; + return autoriser('voirstats', $type, $id, $qui, $opt); } function autoriser_referers_bouton_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){ - return $GLOBALS['visiteur_session']['statut']=='0minirezo'; + return autoriser('voirstats', $type, $id, $qui, $opt); }