Show "most recent" in anti-spam debug page

This commit is contained in:
Michael Save 2013-01-24 19:25:07 +11:00
parent 85710249b7
commit 060be53797
2 changed files with 45 additions and 0 deletions

View file

@ -1764,6 +1764,9 @@ function mod_debug_antispam() {
$query = query('SELECT * FROM `antispam` ' . ($where ? "WHERE $where" : '') . ' ORDER BY `passed` DESC LIMIT 40') or error(db_error());
$args['top'] = $query->fetchAll(PDO::FETCH_ASSOC);
$query = query('SELECT * FROM `antispam` ' . ($where ? "WHERE $where" : '') . ' ORDER BY `created` DESC LIMIT 20') or error(db_error());
$args['recent'] = $query->fetchAll(PDO::FETCH_ASSOC);
mod_page(_('Debug: Anti-spam'), 'mod/debug/antispam.html', $args);
}