diff --git a/core/core.php b/core/core.php index a5ceb7dd..834078f3 100755 --- a/core/core.php +++ b/core/core.php @@ -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', '

Contenu de votre nouvelle page.

'); - $this->setPage('accueil.html', '

Contenu de votre nouvelle page.

', $lang); + file_put_contents(self::DATA_DIR . $lang . '/content/' . 'accueil.html', '

Contenu de votre nouvelle page.

'); } } }