diff --git a/.gitignore b/.gitignore index 3d709d64..6446c4b8 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ site/file/thumb/* # Trucs .gitignore core/vendor/tinymce/link_list.json -core/vendor/tinymce/link_list.json \ No newline at end of file +core/vendor/tinymce/link_list.json +site/tmp/.htaccess diff --git a/core/core.php b/core/core.php index c2a464ec..22a0d18e 100644 --- a/core/core.php +++ b/core/core.php @@ -775,6 +775,12 @@ class common { $this->setData(['core', 'dataVersion', 9011]); $this->SaveData(); } + // Version 9.0.17 + if($this->getData(['core', 'dataVersion']) < 9017) { + $this->setData(['config','displayVersion', true ]); + $this->setData(['core', 'dataVersion', 9017]); + $this->SaveData(); + } } } diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 66c24f15..1a61eadf 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -19,7 +19,8 @@ class install extends common { ], 'timezone' => 'Europe/Paris', 'title' => 'Zwii, votre site en quelques clics !', - 'itemsperPage' => 10 + 'itemsperPage' => 10, + 'displayVersion' => true ], 'core' => [ 'dataVersion' => 0,