[9.0.08] cleaning update old data
This commit is contained in:
parent
0bd3f02026
commit
98244ccb7f
@ -704,24 +704,17 @@ class common {
|
||||
|
||||
// Version 8.4.0
|
||||
if($this->getData(['core', 'dataVersion']) < 840) {
|
||||
$this->setData(['theme','footer','socialsPosition','1']);
|
||||
$this->setData(['theme','footer','textPosition','2']);
|
||||
$this->setData(['theme','footer','copyrightPosition','3']);
|
||||
$this->setData(['config','itemsperPage',10]);
|
||||
$this->setData(['core', 'dataVersion', 840]);
|
||||
$this->SaveData();
|
||||
}
|
||||
// Version 8.4.4
|
||||
if($this->getData(['core', 'dataVersion']) < 844) {
|
||||
$this->setData(['theme','footer','socialsPosition','right']);
|
||||
$this->setData(['theme','footer','textPosition','left']);
|
||||
$this->setData(['theme','footer','copyrightPosition','center']);
|
||||
if($this->getData(['core', 'dataVersion']) < 844) {
|
||||
$this->setData(['core', 'dataVersion', 844]);
|
||||
$this->SaveData();
|
||||
}
|
||||
// Version 8.4.6
|
||||
if($this->getData(['core', 'dataVersion']) < 846) {
|
||||
$this->getData(['core', 'dataVersion']);
|
||||
if($this->getData(['core', 'dataVersion']) < 846) {
|
||||
$this->setData(['config','itemsperPage',10]);
|
||||
$this->setData(['core', 'dataVersion', 846]);
|
||||
$this->SaveData();
|
||||
@ -734,7 +727,6 @@ class common {
|
||||
}
|
||||
// Version 8.5.1
|
||||
if($this->getData(['core', 'dataVersion']) < 851) {
|
||||
$this->getData(['core', 'dataVersion']);
|
||||
$this->setData(['config','itemsperPage',10]);
|
||||
$this->deleteData(['config','ItemsperPage']);
|
||||
$this->setData(['core', 'dataVersion', 851]);
|
||||
@ -742,7 +734,7 @@ class common {
|
||||
}
|
||||
// Version 9.0.0
|
||||
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') {
|
||||
$this->setData(['theme','menu','position','top']);
|
||||
}
|
||||
@ -761,7 +753,9 @@ class common {
|
||||
$this->setData(['theme', 'footer', 'textTransform','none']);
|
||||
$this->setData(['theme', 'footer', 'fontWeight','normal']);
|
||||
$this->setData(['theme', 'footer', 'fontSize','0.8em']);
|
||||
$this->setData(['theme', 'footer', 'font','Open+Sans']);
|
||||
$this->setData(['theme', 'footer', 'font','Open+Sans']);
|
||||
// Effacer une option de la première v9
|
||||
$this->deleteData(['theme', 'site', 'block',]);
|
||||
$this->setData(['core', 'dataVersion', 9008]);
|
||||
$this->SaveData();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user