From d1efca6560352cbdffe8a7630e95e5af037215ce Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 14 Oct 2023 14:35:26 +0200 Subject: [PATCH] fix admin color button --- core/include/update.inc.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index c0610746..0c70c149 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -1093,12 +1093,13 @@ if ($this->getData(['core', 'dataVersion']) < 13005) { } // Fixe la taille de l'administration identique à la taille de site - $this->setData(['admin', 'width', $this->getData(['theme', 'site', 'width'])]); - + $size = $this->getData(['theme', 'site', 'width']); + $this->setData(['admin', 'width', $size]); + // Ancienne déclaration oubliée !! + if ($this->getData(['admin', 'backgroundColorButtonHelp']) === null) { + $this->setData(['admin', 'backgroundColorButtonHelp', 'rgba(255, 153, 0, 1)']); + } // Mise à jour $this->setData(['core', 'dataVersion', 13005]); -} - - - +} \ No newline at end of file