diff --git a/core/core.php b/core/core.php index 02171d2e..7cfc89fb 100644 --- a/core/core.php +++ b/core/core.php @@ -624,14 +624,10 @@ class common // Site en français avec site exemple if ($lang == 'fr_FR' && $sampleSite === true) { file_put_contents(self::DATA_DIR . $lang . '/' . $module . '.json', json_encode([$module => init::$siteTemplate[$module]], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT)); - // Site de test ou page simple + // Création des pages foreach (init::$siteContent as $key => $value) { - // Creation du contenu de la page - if (!empty($this->getData(['page', $key, 'content']))) { - file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value); - } + $this->setPage($key, $value, 'fr_FR'); } - // Version en langue étrangère ou fr_FR sans site de test } else { // En_EN par défaut si le contenu localisé n'est pas traduit diff --git a/core/module/install/install.php b/core/module/install/install.php index a3c15852..125f08b0 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -167,6 +167,7 @@ class install extends common $this->setData(['module', 'blog', 'posts', 'mon-premier-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]); $this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]); + } // Jeu réduit pour les pages étrangères diff --git a/core/module/install/view/postinstall/postinstall.php b/core/module/install/view/postinstall/postinstall.php index 770b49cd..281f4131 100644 --- a/core/module/install/view/postinstall/postinstall.php +++ b/core/module/install/view/postinstall/postinstall.php @@ -65,7 +65,7 @@ - getUrl(2) === 'fr_FR'): ?> +