From fe8d473a76f13f47a77862587a912ade530acb0d Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 7 Jul 2020 15:31:57 +0200 Subject: [PATCH] =?UTF-8?q?Initialisation=20des=20champs=20lors=20d'une=20?= =?UTF-8?q?mise=20=C3=A0=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/core.php b/core/core.php index 78d01a39..959849a5 100755 --- a/core/core.php +++ b/core/core.php @@ -1356,6 +1356,15 @@ class common { $this->deleteData(['theme','footer','displayMemberLogout']); $this->setData(['core', 'dataVersion', 10201]); } + // Version 10.3.00 + if ($this->getData(['core', 'dataVersion']) < 10300) { + // Ajouter le prénom comme pseudo et le pseudo comme signature + foreach($this->getData(['user']) as $userId => $userIds){ + $this->setData(['user',$userId,'pseudo',$this->getData(['user',$userId,'firstname'])]); + $this->setData(['user',$userId,'signature',2]); + } + $this->setData(['core', 'dataVersion', 10300]); + } } }