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]); } if ($this->getData(['core', 'dataVersion']) < 3206) { // Mise à jour $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]); } if ($this->getData(['core', 'dataVersion']) < 4002) { // Validation des statistiques $this->setData(['config', 'statistlite', 'enable', false]); // Mise à jour $this->setData(['core', 'dataVersion', 4002]); } if ($this->getData(['core', 'dataVersion']) < 4101) { $this->setData(['config', 'i18n', 'da', 'none']); $this->setData(['config', 'i18n', 'el', 'none']); $this->setData(['config', 'i18n', 'fi', 'none']); $this->setData(['config', 'i18n', 'ga', 'none']); $this->setData(['config', 'i18n', 'sv', 'none']); $this->setData(['config', 'i18n', 'otherLangBase', '']); // Mise à jour $this->setData(['core', 'dataVersion', 4101]); } if ($this->getData(['core', 'dataVersion']) < 4104) { $this->setData(['config', 'i18n', 'br', 'none']); $this->setData(['config', 'i18n', 'ca', 'none']); $this->setData(['config', 'i18n', 'co', 'none']); $this->setData(['config', 'i18n', 'eu', 'none']); // Mise à jour $this->setData(['core', 'dataVersion', 4104]); } if ($this->getData(['core', 'dataVersion']) < 4201) { // Mise à jour $this->setData(['core', 'dataVersion', 4201]); } ?>