From 3805beec7cc13269434ea4f50de92c87227a61f9 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 31 Aug 2007 11:11:47 +0000 Subject: [PATCH] If user language was updated, update language of ui git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7179 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index ead7b4a6e..75f07e360 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -957,6 +957,12 @@ class user extends plugin /* Finally write data with selected 'mode' */ $this->cleanup(); + + if(isset($this->attrs['preferredLanguage'])){ + $_SESSION['ui']->language = $this->preferredLanguage; + $_SESSION['Last_init_lang'] = "update"; + } + $ldap->cd ($this->dn); $ldap->$mode ($this->attrs); if (show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/generic account with dn '%s' failed."),$this->dn))){ -- 2.30.2