From: Benni Bärmann Date: Fri, 19 Oct 2012 10:07:57 +0000 (+0200) Subject: fixed: LANGUAGE-Bug after registration X-Git-Url: http://aymargeddon.de/gitweb/?p=aymargeddon%2Fcurrent.git;a=commitdiff_plain;h=15cca89f315f0affe5562877f462f2fa7dcdb853 fixed: LANGUAGE-Bug after registration --- diff --git a/html/login.epl b/html/login.epl index c1c77e2..55066e2 100644 --- a/html/login.epl +++ b/html/login.epl @@ -31,10 +31,15 @@ [$ 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'}, - $udat{-lang}); -] + $lang); -] [$ if $new_passwd $] [+ $db->loc('LOGIN_REG_OK_HEAD',$lang) +]