Browse Source

bugs

pull/40/head
nonmakina 3 years ago
parent
commit
36cf6f4174
  1. 10
      templates/themes/categories/theme.php

10
templates/themes/categories/theme.php

@ -94,20 +94,22 @@
} }
private static function getPostStatistics($settings) { private static function getPostStatistics($settings) {
global $config;
if (!isset($config['boards'])) { if (!isset($config['boards'])) {
return null; return null;
} }
$stats = []; $stats = [];
foreach (array_merge(... $config['boards']) as $_board) { foreach (array_merge(... $config['boards']) as $uri) {
$title = boardTitle($board); $_board = getBoardInfo($uri);
if (!$title) { if (!$_board) {
// board doesn't exist. // board doesn't exist.
continue; continue;
} }
$boardStat['title'] = $title; $boardStat['title'] = $_board['title'];
$pph_query = query( $pph_query = query(
sprintf("SELECT COUNT(*) AS count FROM ``posts_%s`` WHERE time > %d", sprintf("SELECT COUNT(*) AS count FROM ``posts_%s`` WHERE time > %d",

Loading…
Cancel
Save