From 1478fec2849da62301e0a6309371716bfb9b8b1b Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 9 Apr 2019 09:39:19 +0200 Subject: [PATCH] [9.0.17] default data display version --- .gitignore | 3 ++- core/core.php | 6 ++++++ core/module/install/ressource/defaultdata.php | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) 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,