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

View File

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