projects
/
aymargeddon
/
current.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed: LANGUAGE-Bug after registration
[aymargeddon/current.git]
/
html
/
login.epl
diff --git
a/html/login.epl
b/html/login.epl
index
c1c77e2
..
55066e2
100644
(file)
--- a/
html/login.epl
+++ b/
html/login.epl
@@
-31,10
+31,15
@@
[$ elsif defined $fdat{'newlogin'} $] [# validate data from register form #]
[$ elsif defined $fdat{'newlogin'} $] [# validate data from register form #]
- [- $new_passwd = $db->new_account($fdat{'newlogin'},
+[-
+ my $lang = 'DE'; # TODO: use DEFAULT_LANGUAGE from config
+ # TODO BUG: default-language looks to be allways EN here...
+ $lang = $udat{-lang} if exists $udat{-lang};
+
+ $new_passwd = $db->new_account($fdat{'newlogin'},
$fdat{'realname'},
$fdat{'email'},
$fdat{'realname'},
$fdat{'email'},
- $
udat{-lang}
); -]
+ $
lang
); -]
[$ if $new_passwd $]
[+ $db->loc('LOGIN_REG_OK_HEAD',$lang) +]<p>
[$ if $new_passwd $]
[+ $db->loc('LOGIN_REG_OK_HEAD',$lang) +]<p>