From 60755e239673848106276a4706f46e20ef550b25 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Fri, 26 Feb 2021 20:21:29 -0500 Subject: [PATCH] Sum up stats that nonmakina added - fixes the "totals" row in the table on news.html --- templates/themes/categories/theme.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php index a9b90e72..44cae18f 100644 --- a/templates/themes/categories/theme.php +++ b/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; }