From 5ff9dd653fdae48b87a5c5ee415a66edc5509cb6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 23 Jun 2001 14:59:15 +0000 Subject: - Made it possible to enter longer username such as 'Gerhard K*llesreit'. - Updated database.mysql. --- includes/theme.inc | 6 +----- includes/user.inc | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 68c2d5adf..b01638d60 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -27,7 +27,7 @@ function theme_init() { } function theme_link() { - global $theme; + global $user, $theme; $links[] = array("index.php", t("home")); $links[] = array("search.php", t("search")); $links[] = array("submit.php", t("submit")); @@ -37,10 +37,6 @@ function theme_link() { if (module_hook($name, "page")) $links[] = array("module.php?mod=$name", t($name)); } -// if (module_exist("forum")) $links[] = "".t("forum") .""; -// if (module_exist("diary")) $links[] = "". t("diary") .""; -// if (module_exist("book")) $links[] = "". t("handbook") .""; - return $theme->links($links, 2); } diff --git a/includes/user.inc b/includes/user.inc index 2abdf094a..5e0bf2274 100644 --- a/includes/user.inc +++ b/includes/user.inc @@ -82,7 +82,7 @@ function user_validate_name($name) { if (eregi(" \$", $name)) return t("the username can not end with a space."); if (eregi(" ", $name)) return t("the username can not contain multiple spaces in a row."); if (eregi("[^a-zA-Z0-9 ]", $name)) return t("the username contains an illegal character."); - if (strlen($name) > 15) return t("the username '$name' is too long: it must be less than 15 characters."); + if (strlen($name) > 32) return t("the username '$name' is too long: it must be less than 32 characters."); } function user_validate_mail($mail) { -- cgit v1.2.3