Browse Source

[9.0.17] default data display version

pull/5/head
Fred Tempez 3 years ago
parent
commit
1478fec284
  1. 3
      .gitignore
  2. 6
      core/core.php
  3. 3
      core/module/install/ressource/defaultdata.php

3
.gitignore

@ -23,4 +23,5 @@ site/file/thumb/*
# Trucs
.gitignore
core/vendor/tinymce/link_list.json
core/vendor/tinymce/link_list.json
core/vendor/tinymce/link_list.json
site/tmp/.htaccess

6
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();
}
}
}

3
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,

Loading…
Cancel
Save