Il y a une solution:
Dans gd_stats.php rechercher
foreach ($args AS $y => $list_y)
{
foreach ($list_y AS $m => $total)
{
$values[] = array(
'lg' => ($use_current) ? $m : substr(Fsb::$session->lang('month_' . $m), 0, 3),
'v' => $total,
);
}
}
Et remplacer par:
foreach ($args AS $y => $list_y)
{
foreach ($list_y AS $m => $total)
{
$values[] = array(
'lg' => ($use_current) ? $m : mb_convert_encoding(mb_substr(Fsb::$session->lang('month_' . $m), 0, 3), "Latin2", "UTF-8"),
'v' => $total,
);
}
}
Explication:
mb_substr() va, contrairement à substr(), tenir compte de la taille des caractères (un ou plusieurs octets).
mb_convert_encoding() va convertir l'encodage UTF-8 en Latin2 qui est l'encodage nécessaire à la fonction imagestring() utilisée par class_gd_stats.php