From 59c79f71cd840193389aca1a1dca9cbdad495056 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 11 Dec 2019 22:53:11 +0100 Subject: [PATCH] [10.0.011.dev] supprimer update v8 --- core/core.php | 71 ++------------------------------------------------- 1 file changed, 2 insertions(+), 69 deletions(-) diff --git a/core/core.php b/core/core.php index 4da46a70..3dc6df27 100644 --- a/core/core.php +++ b/core/core.php @@ -34,7 +34,7 @@ class common { const TEMP_DIR = 'site/tmp/'; // Numéro de version - const ZWII_VERSION = '10.0.010.dev'; + const ZWII_VERSION = '10.0.011.dev'; public static $actions = []; public static $coreModuleIds = [ @@ -890,74 +890,7 @@ class common { * Mises à jour */ private function update() { - // Version 8.1.0 - if($this->getData(['core', 'dataVersion']) < 810) { - $this->setData(['config', 'timezone', 'Europe/Paris']); - $this->setData(['core', 'dataVersion', 810]); - //$this->SaveData(); - } - // Version 8.2.0 - if($this->getData(['core', 'dataVersion']) < 820) { - $this->setData(['theme', 'body', 'backgroundColor', 'rgba(236, 239, 241, 1)']); - $this->setData(['theme', 'site', 'backgroundColor', 'rgba(255, 255, 255, 1)']); - $this->setData(['theme', 'text', 'fontSize', '13px']); - $this->setData(['theme', 'text', 'textColor', 'rgba(33, 34, 35, 1)']); - $this->setData(['theme', 'menu', 'fontSize', '1em']); - $this->setData(['theme', 'menu', 'textColor', 'rgba(255, 255, 255, 1)']); - $this->setData(['theme', 'header', 'fontSize', '2em']); - $this->setData(['theme', 'footer', 'textColor', 'rgba(33, 34, 35, 1)']); - $this->setData(['core', 'dataVersion', 820]); - //$this->SaveData(); - } - // Version 8.2.2 - if($this->getData(['core', 'dataVersion']) < 822) { - $this->setData(['config', 'maintenance', false]); - $this->setData(['core', 'dataVersion', 822]); - //$this->SaveData(); - } - // Version 8.2.6 - if($this->getData(['core', 'dataVersion']) < 826) { - $this->setData(['theme','header','linkHome',true]); - $this->setData(['core', 'dataVersion', 826]); - //$this->SaveData(); - } - // Version 8.3.1 - if($this->getData(['core', 'dataVersion']) < 831) { - $this->setData(['theme','header','imageContainer','auto']); - $this->setData(['core', 'dataVersion', 831]); - //$this->SaveData(); - } - - // Version 8.4.0 - if($this->getData(['core', 'dataVersion']) < 840) { - $this->setData(['config','itemsperPage',10]); - $this->setData(['core', 'dataVersion', 840]); - //$this->SaveData(); - } - // Version 8.4.4 - if($this->getData(['core', 'dataVersion']) < 844) { - $this->setData(['core', 'dataVersion', 844]); - //$this->SaveData(); - } - // Version 8.4.6 - if($this->getData(['core', 'dataVersion']) < 846) { - $this->setData(['config','itemsperPage',10]); - $this->setData(['core', 'dataVersion', 846]); - //$this->SaveData(); - } - // Version 8.5.0 - if($this->getData(['core', 'dataVersion']) < 850) { - $this->setData(['theme','menu','font','Open+Sans']); - $this->setData(['core', 'dataVersion', 850]); - //$this->SaveData(); - } - // Version 8.5.1 - if($this->getData(['core', 'dataVersion']) < 851) { - $this->setData(['config','itemsperPage',10]); - $this->deleteData(['config','ItemsperPage']); - $this->setData(['core', 'dataVersion', 851]); - //$this->SaveData(); - } + // Version 9.0.0 if($this->getData(['core', 'dataVersion']) < 9000) { $this->deleteData(['theme', 'site', 'block']);