Improvements to new mod panel
This commit is contained in:
parent
64f7e70d29
commit
2c1f14d24b
@ -508,7 +508,7 @@ function mod_user($uid) {
|
|||||||
return;
|
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'] != '') {
|
if ($_POST['password'] != '') {
|
||||||
$query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id');
|
$query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id');
|
||||||
$query->bindValue(':id', $uid);
|
$query->bindValue(':id', $uid);
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{% trans 'Noticeboard' %}</legend>
|
<legend>{% trans 'Noticeboard' %}</legend>
|
||||||
<ul>
|
<ul>
|
||||||
{% if noticeboard %}
|
{% if noticeboard|count > 0 %}
|
||||||
<li>
|
<li>
|
||||||
{% trans 'Latest posts:' %}
|
{% trans 'Latest posts:' %}
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user