From d1efca6560352cbdffe8a7630e95e5af037215ce Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 14 Oct 2023 14:35:26 +0200 Subject: [PATCH 1/2] 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 From 8372ee2ad2aa69abf7847bd2d794c8c0303b9fef Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 14 Oct 2023 15:04:52 +0200 Subject: [PATCH 2/2] corrige le fonction signature blog 7.2 --- module/blog/blog.php | 2 +- module/blog/changes.md | 2 ++ module/blog/view/index/index.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index 89e6886f..03fd5b93 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -16,7 +16,7 @@ class blog extends common { - const VERSION = '7.1'; + const VERSION = '7.2'; const REALNAME = 'Blog'; const DELETE = true; const UPDATE = '0.0'; diff --git a/module/blog/changes.md b/module/blog/changes.md index 5ee383d3..129c9b63 100755 --- a/module/blog/changes.md +++ b/module/blog/changes.md @@ -1,3 +1,5 @@ +# Version 7.2 +- Problème avec la portée de la fonction signature déplacée # Version 7.1 - Permission lors de la validation d'un formulaire # Version 7.0 diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index d12c5bf8..41d5cfb3 100755 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -26,7 +26,7 @@
- signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> + signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn']), self::$i18nContent) . ' - ' . helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn']), self::$i18nContent); ?>
@@ -141,7 +141,7 @@
- signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> + signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn']), self::$i18nContent) . ' - ' . helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'], self::$i18nContent), self::$i18nContent); ?>