Browse Source

Sum up stats that nonmakina added

- fixes the "totals" row in the table on news.html
pull/40/head
towards-a-new-leftypol 3 years ago
parent
commit
60755e2396
  1. 3
      templates/themes/categories/theme.php

3
templates/themes/categories/theme.php

@ -137,6 +137,9 @@
$stats['daily_ips'] = count($daily);
$stats['weekly_ips'] = count($weekly);
$stats['pph'] = array_sum(array_column($stats['boards'], 'pph'));
$stats['hourly_ips'] = array_sum(array_column($stats['boards'], 'hourly_ips'));
$stats['daily_ips'] = array_sum(array_column($stats['boards'], 'daily_ips'));
$stats['weekly_ips'] = array_sum(array_column($stats['boards'], 'weekly_ips'));
return $stats;
}

Loading…
Cancel
Save