From 41f122783ca4534ccaa114b1edf6f56db8e05f63 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 10 Oct 2022 11:29:54 +0200 Subject: [PATCH] Initialisation news --- module/news/news.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/news/news.php b/module/news/news.php index d011ee07..919eb5a5 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -526,9 +526,10 @@ class news extends common { private function update() { // le module n'est pas initialisé - if ( $this->getData(['module',$this->getUrl(0)]) === NULL + if ( $this->getData(['module',$this->getUrl(0), 'config']) === NULL + || $this->getData(['module',$this->getUrl(0), 'theme']) === NULL || !file_exists(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css') - ) { + ) { $this->init(); }