From 7d8d0d7a185ba79a4d06f09b8d2d1a63ea38e259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 6 Dec 2024 17:59:49 +0100 Subject: [PATCH] 1.15 warning RFM sur espace home --- core/class/layout.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index b788678..af669d1 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -363,8 +363,9 @@ class layout extends common $this->getUser('permission', 'filemanager') === true && $this->getUser('permission', 'folder', (self::$siteContent === 'home' ? 'homePath' : 'coursePath')) !== 'none' ) { + $folder = '&fldr=/' . (self::$siteContent === 'home' ? '' : self::$siteContent); $items .= '' . template::ico('folder', [ - 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']) . '&fldr=/' . self::$siteContent, + 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']) . $folder, 'margin' => 'all', 'attr' => 'data-lity', 'help' => 'Fichiers du site' @@ -532,8 +533,9 @@ class layout extends common $this->getUser('permission', 'filemanager') === true && $this->getUser('permission', 'folder', (self::$siteContent === 'home' ? 'homePath' : 'coursePath')) !== 'none' ) { + $folder = '&fldr=/' . (self::$siteContent === 'home' ? '' : self::$siteContent); $itemsRight .= '
  • ' . template::ico('folder', [ - 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']) . '&fldr=/' . self::$siteContent, + 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']) . $folder, 'attr' => 'data-lity', 'help' => 'Fichiers du site' ]) . '
  • '; @@ -1084,9 +1086,10 @@ class layout extends common ) || $this->getUser('group') === self::GROUP_ADMIN ) { + $folder = '&fldr=/' . (self::$siteContent === 'home' ? '' : self::$siteContent); $rightItems .= '
  • ' . template::ico('folder', [ 'help' => 'Fichiers', - 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']) . '&fldr=/' . self::$siteContent, + 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']) . $folder, 'attr' => 'data-lity' ]) . '
  • '; }