From bdb2f57ce860234ff6c7572654d2774a2e102cf6 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sun, 6 May 2012 12:29:54 +1000 Subject: [PATCH] small bug fixes --- mod.php | 2 +- templates/mod/users.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.php b/mod.php index f1d47e8d..96fd64e8 100644 --- a/mod.php +++ b/mod.php @@ -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') %} {% 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) %} [{% trans 'edit' %}] {% endif %} {% if mod|hasPermission(config.mod.create_pm) %}