From 828ba66500f49571f2007cacee25b18dce74336f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 19 Jun 2003 17:26:27 +0000 Subject: - Bugfix: fixed utf-8 problem for people that use PHP 4.2.x or below. Patch #33 by Al. - Bugfix: fixed translation problems in the user module and the block module. Patch by Stefan. - Improvement: made it impossible to delete user role #1 and #2. Patch #38 by Al. - Improvement: fixed the "Allowed HTML tag" issues. Makes for better code and improved usability. Patch #35 by Al. NOTE: as soon the compose tips make their way into CVS, most of this code can be removed. --- modules/user/user.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 2bb0a2292..97568191e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -318,7 +318,7 @@ function user_block($op = "list", $delta = 0) { $edit = $_POST["edit"]; if ($op == "list") { - $blocks[0]["info"] = t("Log in"); + $blocks[0]["info"] = t("User login"); $blocks[1]["info"] = t("User information"); $blocks[2]["info"] = t("Who's new"); @@ -1444,7 +1444,12 @@ function user_admin_role($edit = array()) { $header = array(t("name"), t("operations")); while ($role = db_fetch_object($result)) { - $rows[] = array($role->name, array("data" => l(t("edit role"), "admin/user/role/$role->rid"), "align" => "center")); + if ($role->name != "anonymous user" && $role->name != "authenticated user") { + $rows[] = array($role->name, array("data" => l(t("edit role"), "admin/user/role/$role->rid"), "align" => "center")); + } + else { + $rows[] = array($role->name, array("data" => "". t("locked") ."", "align" => "center")); + } } $rows[] = array("", ""); -- cgit v1.2.3