From 838460267419a8ab7e656c2e8651fb74a71a9f27 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 8 Mar 2023 15:59:02 +0100 Subject: [PATCH] RFM data-lity --- core/core.php | 16 +++++++++------- core/include/layout.class.php | 3 ++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/core/core.php b/core/core.php index 705ee9a0..1fb594bb 100644 --- a/core/core.php +++ b/core/core.php @@ -13,6 +13,15 @@ * @link http://zwiicms.fr/ */ +/** + * Chargement des classes filles + * layout : composition des écrans + * router : aiguillage des pages + */ +require_once('include/layout.class.php'); +require_once('include/router.class.php'); + + class common { @@ -1269,10 +1278,3 @@ class common } } -/** - * Chargement des classes - * layout : composition des écrans - * router : aiguillage des pages - */ -require_once('include/layout.class.php'); -require_once('include/router.class.php'); \ No newline at end of file diff --git a/core/include/layout.class.php b/core/include/layout.class.php index 1926086e..6ce750a8 100644 --- a/core/include/layout.class.php +++ b/core/include/layout.class.php @@ -963,7 +963,8 @@ class layout extends common if ($this->getUser('group') >= self::GROUP_MODERATOR) { $rightItems .= '
  • ' . template::ico('folder', [ 'help' => 'Gérer les 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']) + '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']), + 'attr' => 'data-lity' ]) . '
  • '; } if ($this->getUser('group') >= self::GROUP_ADMIN) {