diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-19 17:26:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-19 17:26:27 +0000 |
commit | 828ba66500f49571f2007cacee25b18dce74336f (patch) | |
tree | 642334725a56aaffff5d6fe6dba264fa90071226 /modules/user.module | |
parent | 0c5b324809dcb44de8690f7bba21fec607bd67d1 (diff) | |
download | brdo-828ba66500f49571f2007cacee25b18dce74336f.tar.gz brdo-828ba66500f49571f2007cacee25b18dce74336f.tar.bz2 |
- 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.
Diffstat (limited to 'modules/user.module')
-rw-r--r-- | modules/user.module | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index 2bb0a2292..97568191e 100644 --- a/modules/user.module +++ b/modules/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" => "<span class=\"disabled\">". t("locked") ."</span>", "align" => "center")); + } } $rows[] = array("<input type=\"text\" size=\"32\" maxlength=\"64\" name=\"edit[name]\" />", "<input type=\"submit\" name=\"op\" value=\"". t("Add role") ."\" />"); |