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) {
|
if ($sampleSite === true) {
|
||||||
foreach(init::$siteContent as $key => $value) {
|
foreach(init::$siteContent as $key => $value) {
|
||||||
// Creation du contenu de la page
|
// Creation du contenu de la page
|
||||||
// file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value);
|
file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value);
|
||||||
$this->setPage($this->getData(['page', $key, 'content']), $value, $lang);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Créer la page d'accueil
|
// Créer la page d'accueil
|
||||||
// file_put_contents(self::DATA_DIR . $lang . '/content/' . 'accueil.html', '<p>Contenu de votre nouvelle page.</p>');
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user