From 4c8dfadf2d11373d9518fea94a05d4a04f74589e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 5 Aug 2008 23:45:15 -0400 Subject: make init of lang environment happen earlier, or when user language may have changed darcs-hash:20080806034515-84dde-e32cbfec2890f50b610d0441659180038b060473.gz --- actions/register.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index d97e3a18a..c53910842 100644 --- a/actions/register.php +++ b/actions/register.php @@ -98,6 +98,8 @@ class RegisterAction extends Action { common_debug('Adding rememberme cookie for ' . $nickname); common_rememberme($user); } + # Re-init language env in case it changed (not yet, but soon) + common_init_language(); $this->show_success(); } else { $this->show_form(_('Invalid username or password.')); -- cgit v1.2.3-54-g00ecf