small bug fixes
This commit is contained in:
parent
e6263bfdd7
commit
bdb2f57ce8
2
mod.php
2
mod.php
@ -79,7 +79,7 @@ $pages = array(
|
|||||||
if (!$mod) {
|
if (!$mod) {
|
||||||
$pages = array('//' => 'login');
|
$pages = array('//' => 'login');
|
||||||
} elseif (isset($_GET['status'], $_GET['r'])) {
|
} elseif (isset($_GET['status'], $_GET['r'])) {
|
||||||
header('Location: ' . $_GET['r'], true, (int)$_GET['stats']);
|
header('Location: ' . $_GET['r'], true, (int)$_GET['status']);
|
||||||
} elseif (isset($config['mod']['custom_pages'])) {
|
} elseif (isset($config['mod']['custom_pages'])) {
|
||||||
$pages = array_merge($pages, $config['mod']['custom_pages']);
|
$pages = array_merge($pages, $config['mod']['custom_pages']);
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
{% if mod|hasPermission(config.mod.promoteusers) and user.type > constant('JANITOR') %}
|
{% if mod|hasPermission(config.mod.promoteusers) and user.type > constant('JANITOR') %}
|
||||||
<a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/demote" title="{% trans 'Demote' %}">▼</a>
|
<a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/demote" title="{% trans 'Demote' %}">▼</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if mod|hasPermission(config.editusers) or (mod|hasPermission(config.change_password) and mod.id == user.id) %}
|
{% if mod|hasPermission(config.mod.editusers) or (mod|hasPermission(config.mod.change_password) and mod.id == user.id) %}
|
||||||
<a class="unimportant" style="margin-left:5px;float:right" href="?/users/{{ user.id }}">[{% trans 'edit' %}]</a>
|
<a class="unimportant" style="margin-left:5px;float:right" href="?/users/{{ user.id }}">[{% trans 'edit' %}]</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if mod|hasPermission(config.mod.create_pm) %}
|
{% if mod|hasPermission(config.mod.create_pm) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user