diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-05-06 12:29:54 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-05-06 12:29:54 +1000 |
| commit | bdb2f57ce860234ff6c7572654d2774a2e102cf6 (patch) | |
| tree | d4f139260e0e249223f303ba30827780c9749145 | |
| parent | e6263bfdd7992d54db39e39eb8c7825c65bf12a7 (diff) | |
small bug fixes
| -rw-r--r-- | mod.php | 2 | ||||
| -rw-r--r-- | templates/mod/users.html | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -79,7 +79,7 @@ $pages = array( if (!$mod) { $pages = array('//' => 'login'); } 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'])) { $pages = array_merge($pages, $config['mod']['custom_pages']); } diff --git a/templates/mod/users.html b/templates/mod/users.html index a0d216d3..761d3ddd 100644 --- a/templates/mod/users.html +++ b/templates/mod/users.html @@ -52,7 +52,7 @@ {% 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> {% 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> {% endif %} {% if mod|hasPermission(config.mod.create_pm) %} |
