Browse Source

oublis dans r45479

svn/root/tags/plugins/statistiques/0.3.2
brunobergot@gmail.com 11 years ago
parent
commit
e28747829c
  1. 2
      exec/base_delete_stats.php
  2. 4
      stats_pipelines.php

2
exec/base_delete_stats.php

@ -23,7 +23,7 @@ function exec_base_delete_stats_dist()
include_spip('inc/headers');
$admin = charger_fonction('admin', 'inc');
$res = $admin('delete_stats', _T('bouton_effacer_statistiques'), '');
if ($res) echo $res; else redirige_url_ecrire('statistiques_visites','');
if ($res) echo $res; else redirige_url_ecrire('stats_visites','');
}
}

4
stats_pipelines.php

@ -87,7 +87,7 @@ function admin_stats($objet, $id_objet, $var_preview)
// http://doc.spip.org/@generer_url_ecrire_statistiques
function generer_url_ecrire_statistiques($id_article) {
return generer_url_ecrire('statistiques_visites', "id_article=$id_article");
return generer_url_ecrire('stats_visites', "id_article=$id_article");
}
@ -118,7 +118,7 @@ function stats_boite_infos($flux){
$visites = sql_getfetsel('visites','spip_articles','id_article='.intval($id_article));
if ($visites>0){
$icone_horizontale=chercher_filtre('icone_horizontale');
$flux['data'].=$icone_horizontale(generer_url_ecrire("statistiques_visites","id_article=$id_article"),_T('icone_evolution_visites', array('visites' => $visites)),"statistique-24.png");
$flux['data'].=$icone_horizontale(generer_url_ecrire("stats_visites","id_article=$id_article"),_T('icone_evolution_visites', array('visites' => $visites)),"statistique-24.png");
}
}
}

Loading…
Cancel
Save