Changed to accomodate the new way the session language is working.

This commit is contained in:
Loic d'Anterroches 2009-11-13 12:26:49 +01:00
parent 857c11933a
commit c72e9f4eb0

View File

@ -113,7 +113,8 @@ class IDF_Views_User
$form = new IDF_Form_UserAccount($request->POST, $params); $form = new IDF_Form_UserAccount($request->POST, $params);
if ($form->isValid()) { if ($form->isValid()) {
$user = $form->save(); $user = $form->save();
$url = Pluf_HTTP_URL_urlForView('IDF_Views::index'); $url = Pluf_HTTP_URL_urlForView('IDF_Views_User::myAccount');
$request->session->setData('pluf_language', $user->language);
$request->user->setMessage(__('Your personal information have been updated.')); $request->user->setMessage(__('Your personal information have been updated.'));
return new Pluf_HTTP_Response_Redirect($url); return new Pluf_HTTP_Response_Redirect($url);
} }