Version sur 4 digits

This commit is contained in:
fredtempez 2019-02-12 15:29:44 +01:00
parent 7aaf446893
commit f2d88fd2b9

View File

@ -26,7 +26,7 @@ class common {
const GROUP_MEMBER = 1; const GROUP_MEMBER = 1;
const GROUP_MODERATOR = 2; const GROUP_MODERATOR = 2;
const GROUP_ADMIN = 3; const GROUP_ADMIN = 3;
const ZWII_VERSION = '9.0.0'; const ZWII_VERSION = '9.0.00';
public static $actions = []; public static $actions = [];
public static $coreModuleIds = [ public static $coreModuleIds = [
@ -1047,12 +1047,6 @@ class common {
$this->setData(['core', 'dataVersion', 831]); $this->setData(['core', 'dataVersion', 831]);
$this->SaveData(); $this->SaveData();
} }
// Versions intermédiaires
// Erreur de nommage
if($this->getData(['core', 'dataVersion']) >= 8311) {
$this->setData(['core', 'dataVersion', 832]);
$this->SaveData();
}
// Version 8.4.0 // Version 8.4.0
if($this->getData(['core', 'dataVersion']) < 840) { if($this->getData(['core', 'dataVersion']) < 840) {
@ -1073,6 +1067,8 @@ class common {
} }
// Version 8.4.6 // Version 8.4.6
if($this->getData(['core', 'dataVersion']) < 846) { if($this->getData(['core', 'dataVersion']) < 846) {
echo $this->getData(['core', 'dataVersion']);
echo '<br>';
$this->setData(['config','itemsperPage',10]); $this->setData(['config','itemsperPage',10]);
$this->setData(['core', 'dataVersion', 846]); $this->setData(['core', 'dataVersion', 846]);
$this->SaveData(); $this->SaveData();
@ -1085,21 +1081,23 @@ class common {
} }
// Version 8.5.1 // Version 8.5.1
if($this->getData(['core', 'dataVersion']) < 851) { if($this->getData(['core', 'dataVersion']) < 851) {
echo $this->getData(['core', 'dataVersion']);
echo '<br>';
$this->setData(['config','itemsperPage',10]); $this->setData(['config','itemsperPage',10]);
$this->deleteData(['config','ItemsperPage']); $this->deleteData(['config','ItemsperPage']);
$this->setData(['core', 'dataVersion', 851]); $this->setData(['core', 'dataVersion', 851]);
$this->SaveData(); $this->SaveData();
} }
// Version 9.0.0 // Version 9.0.0
if($this->getData(['core', 'dataVersion']) < 900) { if($this->getData(['core', 'dataVersion']) < 9000) {
$this->setData(['theme', 'site', 'block','12']); $this->setData(['theme', 'site', 'block','12']);
if ($this->getData(['theme','menu','position']) === 'body-top') { if ($this->getData(['theme','menu','position']) === 'body-top') {
$this->setData(['theme','menu','position','top']); $this->setData(['theme','menu','position','top']);
} }
$this->setData(['theme', 'menu','fixed',false]); $this->setData(['theme', 'menu','fixed',false]);
$this->setData(['core', 'dataVersion', 900]); $this->setData(['core', 'dataVersion', 9000]);
$this->SaveData(); $this->SaveData();
} }
} }
} }