Permalink
Browse files

Default language for users is now the same as the site language.

  • Loading branch information...
1 parent 08beb33 commit 369622db972d3de4fd3fc7254cc8d36bf34c00ee moodler committed Oct 18, 2002
Showing with 2 additions and 1 deletion.
  1. +1 −0 login/signup.php
  2. +1 −1 user/edit.html
View
@@ -12,6 +12,7 @@
$user->password = md5($user->password);
$user->confirmed = 0;
+ $user->lang = $CFG->lang;
$user->firstaccess = time();
$user->secret = random_string(15);
View
@@ -88,7 +88,7 @@
<td><P><? print_string("preferredlanguage") ?>:</td>
<td><? if ($languages = get_list_of_languages()) {
if (!$user->lang) {
- $user->lang = "en";
+ $user->lang = $CFG->lang;
}
choose_from_menu ($languages, "lang", $user->lang, "", "", "");
}

0 comments on commit 369622d

Please sign in to comment.