community
All checks were successful
Deploy / deploy (push) Successful in 49s

This commit is contained in:
2026-07-22 20:59:57 +02:00
parent 60998777a4
commit 1176b98522

View File

@@ -13,7 +13,6 @@ $communityCfg = require __DIR__ . '/../../../config/community.php';
$community = $pdo ? new \App\Community($pdo, $communityCfg) : null;
$access = $pdo ? new \App\CommunityAccess($pdo, $communityCfg) : null;
$stats = $community ? $community->getStats() : ['threads' => 0, 'posts' => 0, 'members' => 0];
$forumCategories = $community ? $community->listForumCategories() : [];
$selectedBoard = ($community && $boardSlug !== '') ? $community->getBoardBySlug($boardSlug) : null;
@@ -84,17 +83,6 @@ $threads = $community
<div class="toast-bar" style="margin-top:14px;"><?= htmlspecialchars($info, ENT_QUOTES) ?></div>
<?php endif; ?>
<div class="forum-stats forum-stats--compact">
<div class="forum-stat">
<span class="forum-stat__label">Themen</span>
<strong><?= number_format($stats['threads']) ?></strong>
</div>
<div class="forum-stat">
<span class="forum-stat__label">Beiträge</span>
<strong><?= number_format($stats['posts']) ?></strong>
</div>
</div>
<?php if ($selectedBoard): ?>
<div class="forum-shell">
<?php