From be1a9515dfb9ffbee7f6d17688afee2f2964b41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Mon, 21 Mar 2022 18:57:13 +0100 Subject: [PATCH] warning chargement de feuille de style de module absente --- core/core.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index a4287c8d..a2466dd6 100644 --- a/core/core.php +++ b/core/core.php @@ -2982,10 +2982,11 @@ class core extends common { 'style' => file_get_contents($stylePath) ]); } - if ($output['style']) { - $this->addOutput([ - 'style' => $this->output['style'] . file_get_contents($output['style']) - ]); + if ($output['style'] && + file_exists($output['style'])) { + $this->addOutput([ + 'style' => $this->output['style'] . file_get_contents($output['style']) + ]); } // JS $scriptPath = $modulePath . 'module/' . $moduleId . '/view/' . $output['view'] . '/' . $output['view'] . '.js.php';