From 72b8caf6afd0d09aa829ad9aecd78bc14c92932d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 7 Oct 2014 14:43:38 +0200 Subject: [PATCH] =?utf8?q?Il=20est=20plus=20prudent=20de=20renvoyer=20une?= =?utf8?q?=20copie=20des=20pr=C3=A9f=C3=A9rences=20linguistiques=20enregis?= =?utf8?q?tr=C3=A9es=20dans=20les=20MemberData.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- userlanguages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userlanguages.py b/userlanguages.py index 8103d15..40fca2a 100644 --- a/userlanguages.py +++ b/userlanguages.py @@ -10,5 +10,5 @@ class AuthenticatedUserLanguages(BrowserLanguages): return super(AuthenticatedUserLanguages, self).getPreferredLanguages() else : m = mtool.getAuthenticatedMember() - userLangs = m.getProperty('preferred_languages', []) + userLangs = m.getProperty('preferred_languages', [])[:] return userLangs or super(AuthenticatedUserLanguages, self).getPreferredLanguages() -- 2.20.1