forked from ZwiiCMS-Team/ZwiiCMS
bug installation des pages
This commit is contained in:
parent
df87a23bbc
commit
72d845f37f
@ -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>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user