forked from leftypol/leftypol
Merge pull request #344 from discomrade/appeals-count
Show ban appeal count on mod dashboard
This commit is contained in:
commit
eee71e58a3
2 changed files with 8 additions and 3 deletions
|
@ -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)'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue