news 3.7 défaut initialisation

This commit is contained in:
Fred Tempez 2022-01-17 18:41:46 +01:00
parent 1f8fba7a71
commit 7d570763eb
1 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@
class news extends common { class news extends common {
const VERSION = '3.6'; const VERSION = '3.7';
const REALNAME = 'News'; const REALNAME = 'News';
const DELETE = true; const DELETE = true;
const UPDATE = '0.0'; const UPDATE = '0.0';
@ -499,7 +499,9 @@ class news extends common {
$versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]); $versionData = $this->getData(['module',$this->getUrl(0),'config', 'versionData' ]);
// le module n'est pas initialisé // le module n'est pas initialisé
if ($versionData === NULL) { if ( $versionData === NULL
|| !file_exists(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css')
) {
$this->init(); $this->init();
} }