From 662e4889437b8096d75c51527b425a83c3da6143 Mon Sep 17 00:00:00 2001 From: nonmakina Date: Tue, 19 Jan 2021 21:10:29 -0600 Subject: [PATCH] syntax and html errors --- templates/themes/categories/news.html | 5 +++-- templates/themes/categories/theme.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/themes/categories/news.html b/templates/themes/categories/news.html index 1c6de4bd..ee7da702 100644 --- a/templates/themes/categories/news.html +++ b/templates/themes/categories/news.html @@ -40,7 +40,7 @@ - {% trans Total %} + {% trans "Total" %} {{ stats.pph }} @@ -56,7 +56,8 @@ {{ boardStat.pph }} - + + {{ boardStat.recent_ips }} diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php index 5b84095c..379eee8e 100644 --- a/templates/themes/categories/theme.php +++ b/templates/themes/categories/theme.php @@ -136,7 +136,7 @@ } $stats['recent_ips'] = count($unique); - $stats['pph'] = count(array_column($stats['board'], 'pph')); + $stats['pph'] = count(array_column($stats['boards'], 'pph')); return $stats; }