From de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 22 Apr 2002 09:05:36 +0000 Subject: - bug fixes: * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch. --- modules/user.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index 1169898c8..2f202c3b8 100644 --- a/modules/user.module +++ b/modules/user.module @@ -459,7 +459,7 @@ function user_block() { // Display account settings: $block[0]["subject"] = $user->name; - $output .= "
\n"; + $output = "
\n"; $links = array_merge(module_invoke_all("link", "menu.create"), array(""), module_invoke_all("link", "menu.view"), array(""), module_invoke_all("link", "menu.settings"), array(""), module_invoke_all("link", "menu.misc")); $output .= @implode("
\n", $links); @@ -470,18 +470,17 @@ function user_block() { else { $block[1]["subject"] = t("Log in"); - $output .= "
\n"; + $output = "
\n"; $output .= "
"user", "op" => "login"), "module")."\" method=\"post\">\n"; $output .= "". t("Username") .":

\n"; $output .= "". t("Password") .":

\n"; - $output .= "". t("Remember me") ."
\n"; + $output .= "". t("Remember me") ."
\n"; $output .= "
\n"; - $output .= "
\n"; + $output .= "
\n"; if (variable_get("account_register", 1)) { $output .= "» ".lm(t("Register"), array("mod" => "user", "op" => "register"), t("Create a new user account."))."\n"; } - $output .= "
» ".lm(t("New password"), array("mod" => "user", "op" => "password"), t("Request new password via e-mail"))."
"; - $output .= "\n"; + $output .= "
» ".lm(t("New password"), array("mod" => "user", "op" => "password"), t("Request new password via e-mail"))."
"; $block[1]["content"] = $output; } @@ -940,7 +939,7 @@ function user_register($edit = array()) { //the first user may login immediately, and receives a customized welcome email. if ($user->uid == 1) { - user_mail($edit["mail"], t("drupal user account details for %s", array("%s" => $edit["name"])), t("%username,\n\nYou may now login to %uri using the following username and password:\n\n username: %username\n password: %password\n\nAfter logging in, you may wish to visit the following pages:\n\nAdministration: %uriadmin.php\nEdit user account: %uri".drupal_url(array("mod" => "user", "op" => "edit"), "module")."\n\n--drupal"), $variables, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); + user_mail($edit["mail"], t("drupal user account details for %s", array("%s" => $edit["name"])), strtr(t("%username,\n\nYou may now login to %uri using the following username and password:\n\n username: %username\n password: %password\n\nAfter logging in, you may wish to visit the following pages:\n\nAdministration: %uriadmin.php\nEdit user account: %uri". drupal_url(array("mod" => "user", "op" => "edit"), "module") ."\n\n--drupal"), $variables), "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); // This should not be t()'ed. No point as its only shown once in the sites lifetime, and it would be bad to store the password $output .= "

Welcome to Drupal. You are user #1, which gives you full and immediate access. All future registrants will receive their passwords via email, so please configure your email settings using the Administration pages.

Your password is $pass. You may change your password on the next page.

Please login below.

"; $output .= form_hidden("name", $user->name); @@ -1179,6 +1178,7 @@ function user_page() { case t("Save user information"): case "edit": $output = user_edit($edit); + $theme = theme_init(); $theme->header(); $theme->box(t("User account"), user_menu()); $theme->box(t("Edit user information"), $output); -- cgit v1.2.3