Show ban appeal count on mod dashboard

This commit is contained in:
discomrade 2021-07-24 04:32:45 -02:00
parent ca8f6baa36
commit 78b3a63311
2 changed files with 8 additions and 3 deletions

View file

@ -115,6 +115,9 @@ function mod_dashboard() {
$query = query('SELECT COUNT(*) FROM ``reports``') or error(db_error($query));
$args['reports'] = $query->fetchColumn();
$query = query('SELECT COUNT(*) FROM ``ban_appeals``') or error(db_error($query));
$args['appeals'] = $query->fetchColumn();
if ($mod['type'] >= ADMIN && $config['check_updates']) {
if (!$config['version'])
error(_('Could not find current version! (Check .installed)'));