1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

Improvements to new mod panel

This commit is contained in:
Michael Save 2012-04-21 12:42:41 +10:00
parent 64f7e70d29
commit 2c1f14d24b
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ function mod_user($uid) {
return;
}
if (hasPermission($config['dmod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) {
if (hasPermission($config['mod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) {
if ($_POST['password'] != '') {
$query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id');
$query->bindValue(':id', $uid);

View File

@ -27,7 +27,7 @@
<fieldset>
<legend>{% trans 'Noticeboard' %}</legend>
<ul>
{% if noticeboard %}
{% if noticeboard|count > 0 %}
<li>
{% trans 'Latest posts:' %}
<ul>