minor change

This commit is contained in:
Michael Save 2012-05-28 17:08:29 +10:00
parent 97dd6ab391
commit 8d96bfc3e9
2 changed files with 6 additions and 7 deletions

View File

@ -978,6 +978,8 @@ function mod_deletefile($board, $post) {
deleteFile($post); deleteFile($post);
// Record the action // Record the action
modLog("Deleted file from post #{$post}"); modLog("Deleted file from post #{$post}");
// Rebuild thread
buildThread($post);
// Rebuild board // Rebuild board
buildIndex(); buildIndex();
@ -1217,11 +1219,10 @@ function mod_users() {
if (!hasPermission($config['mod']['manageusers'])) if (!hasPermission($config['mod']['manageusers']))
error($config['error']['noaccess']); 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()); $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) { function mod_user_promote($uid, $action) {

View File

@ -61,9 +61,7 @@
<li> <li>
<a href="?/inbox"> <a href="?/inbox">
{% trans 'PM inbox' %} {% trans 'PM inbox' %}
{% if unread_pms > 0 %} {% if unread_pms > 0 %}<strong>{%endif %}({{ unread_pms }} unread){% if unread_pms > 0 %}</strong>{%endif %}
<strong>({{ unread_pms }} unread)</strong>
{% endif %}
</a> </a>
</li> </li>
</ul> </ul>