bug installation des pages

This commit is contained in:
Fred Tempez 2021-08-21 18:22:31 +02:00
parent df87a23bbc
commit 72d845f37f

View File

@ -578,13 +578,11 @@ 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);
$this->setPage($this->getData(['page', $key, 'content']), $value, $lang);
file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value);
}
} else {
// Créer la page d'accueil
// file_put_contents(self::DATA_DIR . $lang . '/content/' . 'accueil.html', '<p>Contenu de votre nouvelle page.</p>');
$this->setPage('accueil.html', '<p>Contenu de votre nouvelle page.</p>', $lang);
file_put_contents(self::DATA_DIR . $lang . '/content/' . 'accueil.html', '<p>Contenu de votre nouvelle page.</p>');
}
}
}