From 471cc0d8eb58068710e50077be980d28fee0e84d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 10 Jul 2019 09:19:12 +0200 Subject: [PATCH] [9.2.00] defaultdata settings --- core/core.php | 15 +++++++++------ core/module/install/ressource/defaultdata.php | 3 ++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/core/core.php b/core/core.php index 98cd6ad0..e426bac0 100644 --- a/core/core.php +++ b/core/core.php @@ -934,13 +934,16 @@ class common { $this->setData(['core', 'dataVersion', 9100]); $this->SaveData(); } - // Version 9.1.13 - if($this->getData(['core', 'dataVersion']) < 9113) { + // Version 9.2.00 + if($this->getData(['core', 'dataVersion']) < 9200) { $this->setData(['theme','footer','template', 3 ]); $this->setData(['theme','footer','margin', true ]); - $this->setData(['core', 'dataVersion', 9113]); + $this->setData(['theme','footer','displayLegal', false ]); + $this->setData(['theme','footer','displaySearch', false ]); + $this->setData(['config','social','githubId', '' ]); + $this->setData(['core', 'dataVersion', 9200]); $this->SaveData(); - } + } } } @@ -1972,12 +1975,12 @@ class layout extends common { $items .= ''; // Affichage du sitemap $items .= 'getData(['theme','footer','displaySiteMap']) === false? ' class="displayNone"' : ''; + $items .= $this->getData(['theme','footer','displaySiteMap']) === false ? ' class="displayNone"' : ''; $items .= '> | Plan du site'; $items .= ''; // Affichage du module de recherche $items .= 'getData(['theme','footer','displaySearch']) === false? ' class="displayNone"' : ''; + $items .= $this->getData(['theme','footer','displaySearch']) === false ? ' class="displayNone"' : ''; $items .= '> | Rechercher'; $items .= ''; // Affichage des mentions légales diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index ad60ba36..837b0ad7 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -440,7 +440,8 @@ class install extends common { 'displayVersion' => true, 'displaySiteMap' => true, 'displayCopyright' => true, - 'displayLegal' => false, + 'displayLegal' => false, + 'displaySearch' => false, 'template' => '3' ], 'header' => [