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_MODERATOR = 2;
const GROUP_ADMIN = 3;
const ZWII_VERSION = '9.0.0';
const ZWII_VERSION = '9.0.00';
public static $actions = [];
public static $coreModuleIds = [
@ -1047,12 +1047,6 @@ class common {
$this->setData(['core', 'dataVersion', 831]);
$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
if($this->getData(['core', 'dataVersion']) < 840) {
@ -1073,6 +1067,8 @@ class common {
}
// Version 8.4.6
if($this->getData(['core', 'dataVersion']) < 846) {
echo $this->getData(['core', 'dataVersion']);
echo '<br>';
$this->setData(['config','itemsperPage',10]);
$this->setData(['core', 'dataVersion', 846]);
$this->SaveData();
@ -1085,19 +1081,21 @@ class common {
}
// Version 8.5.1
if($this->getData(['core', 'dataVersion']) < 851) {
echo $this->getData(['core', 'dataVersion']);
echo '<br>';
$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']) < 900) {
if($this->getData(['core', 'dataVersion']) < 9000) {
$this->setData(['theme', 'site', 'block','12']);
if ($this->getData(['theme','menu','position']) === 'body-top') {
$this->setData(['theme','menu','position','top']);
}
$this->setData(['theme', 'menu','fixed',false]);
$this->setData(['core', 'dataVersion', 900]);
$this->setData(['core', 'dataVersion', 9000]);
$this->SaveData();
}
}