Warning causé à l'installation par la page de redirection

This commit is contained in:
Fred Tempez 2021-10-18 18:57:59 +02:00
parent 0e4971da17
commit 67c255952b

View File

@ -587,7 +587,9 @@ class common {
if ($sampleSite === true) {
foreach(init::$siteContent as $key => $value) {
// Creation du contenu de la page
file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value);
if (!empty($this->getData(['page', $key, 'content'])) ) {
file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value);
}
}
} else {
// Créer la page d'accueil