Browse Source

news 3.7 défaut initialisation

master
Fred Tempez 4 months ago
parent
commit
7d570763eb
  1. 6
      module/news/news.php

6
module/news/news.php

@ -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();
}

Loading…
Cancel
Save