Skip to content
Extraits de code Groupes Projets
Valider 9aa3b859 rédigé par Matthieu Aubry's avatar Matthieu Aubry
Parcourir les fichiers

Merge pull request #6689 from Uby501/time-bugfix

Time bugfix
parents b7e53dd9 1f662504
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -66,7 +66,9 @@ abstract class Base extends \Piwik\Plugin\Report ...@@ -66,7 +66,9 @@ abstract class Base extends \Piwik\Plugin\Report
)); ));
// prettify avg_time_on_page column // prettify avg_time_on_page column
$getPrettyTimeFromSeconds = '\Piwik\MetricsFormatter::getPrettyTimeFromSeconds'; $getPrettyTimeFromSeconds = function ($time) {
return MetricsFormatter::getPrettyTimeFromSeconds($time, false, true, false);
};
$view->config->filters[] = array('ColumnCallbackReplace', array('avg_time_on_page', $getPrettyTimeFromSeconds)); $view->config->filters[] = array('ColumnCallbackReplace', array('avg_time_on_page', $getPrettyTimeFromSeconds));
// prettify avg_time_generation column // prettify avg_time_generation column
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter