2022-01-31 09:10:49 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Mises à jour suivant les versions de DeltaCMS
|
|
|
|
*/
|
|
|
|
|
2022-02-15 15:46:04 +01:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 3202) {
|
|
|
|
//Forcer une mise à jour de admin.css
|
|
|
|
$this->setData(['admin', 'maj', true]);
|
|
|
|
//Forcer une mise à jour de theme.css
|
|
|
|
if (file_exists(self::DATA_DIR . '/theme.css')) unlink (self::DATA_DIR . '/theme.css');
|
|
|
|
$this->setData(['core', 'dataVersion', 3202]);
|
2022-01-31 09:10:49 +01:00
|
|
|
}
|
2022-03-06 13:35:21 +01:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 3206) {
|
2022-02-17 08:00:09 +01:00
|
|
|
// Mise à jour
|
2022-03-06 13:35:21 +01:00
|
|
|
$this->setData(['core', 'dataVersion', 3206]);
|
|
|
|
}
|
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4001) {
|
|
|
|
$this->setData(['config', 'i18n', 'langAdmin', 'fr']);
|
|
|
|
$this->setData(['config', 'i18n', 'langBase', 'fr']);
|
|
|
|
// Copie le contenu de site/data/fr vers site/data/base puis supprime site/data/fr
|
|
|
|
if( is_dir('./site/data/fr/') ){
|
|
|
|
$this->copyDir('./site/data/fr/', './site/data/base/');
|
|
|
|
$this->removeDir('./site/data/fr/');
|
|
|
|
}
|
|
|
|
// Mise à jour
|
|
|
|
$this->setData(['core', 'dataVersion', 4001]);
|
2022-02-17 08:00:09 +01:00
|
|
|
}
|
2022-01-31 09:10:49 +01:00
|
|
|
?>
|