bug pre update fresh install

bug slash
This commit is contained in:
Fred Tempez 2023-02-18 08:41:01 +01:00
parent 9395321f4a
commit 9d7e10604b
2 changed files with 21 additions and 20 deletions

View File

@ -1,13 +1,13 @@
<?php
$version = json_decode(file_get_contents('site/data/core.json'), true);
/**
* Mise à jour avant v12
* */
if ($version['core']['dataVersion'] < 12000)
{
if (file_exists('site/data/core.json')) {
$version = json_decode(file_get_contents('site/data/core.json'), true);
if ($version['core']['dataVersion'] < 12000) {
// Correspondance pour les dossiers de langue à convertir
$languages = [
'fr' => 'fr_FR',
@ -25,3 +25,4 @@ if ($version['core']['dataVersion'] < 12000)
}
sleep(2);
}
}

View File

@ -950,7 +950,7 @@ if ($this->getData(['core', 'dataVersion']) < 12300) {
}
// Nettoyage de flatPickr
$this->removeDir('core\vendor\flatpickr');
$this->removeDir('core/vendor/flatpickr');
// Mise à jour
$this->setData(['core', 'dataVersion', 12300]);