Initialisation news

This commit is contained in:
Fred Tempez 2022-10-10 11:29:54 +02:00
parent 65bdf8121f
commit 41f122783c

View File

@ -526,9 +526,10 @@ class news extends common {
private function update() { private function update() {
// le module n'est pas initialisé // 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') || !file_exists(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css')
) { ) {
$this->init(); $this->init();
} }