From 8d96bfc3e90dd5293f3b39beac975850822f8a4b Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 28 May 2012 17:08:29 +1000 Subject: [PATCH] minor change --- inc/mod/pages.php | 7 ++++--- templates/mod/dashboard.html | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 878df92d..72c8c195 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -978,6 +978,8 @@ function mod_deletefile($board, $post) { deleteFile($post); // Record the action modLog("Deleted file from post #{$post}"); + // Rebuild thread + buildThread($post); // Rebuild board buildIndex(); @@ -1217,11 +1219,10 @@ function mod_users() { if (!hasPermission($config['mod']['manageusers'])) error($config['error']['noaccess']); - $args = array(); $query = query("SELECT *, (SELECT `time` FROM `modlogs` WHERE `mod` = `id` ORDER BY `time` DESC LIMIT 1) AS `last`, (SELECT `text` FROM `modlogs` WHERE `mod` = `id` ORDER BY `time` DESC LIMIT 1) AS `action` FROM `mods` ORDER BY `type` DESC,`id`") or error(db_error()); - $args['users'] = $query->fetchAll(PDO::FETCH_ASSOC); + $users = $query->fetchAll(PDO::FETCH_ASSOC); - mod_page(_('Manage users'), 'mod/users.html', $args); + mod_page(sprintf('%s (%d)', _('Manage users'), count($users)), 'mod/users.html', array('users' => $users)); } function mod_user_promote($uid, $action) { diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 1c70bf06..47a25390 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -60,10 +60,8 @@
  • {% trans 'News' %}
  • - {% trans 'PM inbox' %} - {% if unread_pms > 0 %} - ({{ unread_pms }} unread) - {% endif %} + {% trans 'PM inbox' %} + {% if unread_pms > 0 %}{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}{%endif %}