remove from core

This commit is contained in:
Fred Tempez 2023-08-27 23:14:25 +02:00
parent ba171115cd
commit 8651581fb5

View File

@ -428,24 +428,6 @@ class common
stream_context_set_default($context);
}
/**
* Met à jour les dictionnaires des langues depuis les nouveaux modèles installés
*/
require_once('core/module/install/ressource/defaultdata.php');
$installedLanguages = $this->getData(['language']);
$defaultLanguages = init::$defaultData['language'];
foreach ($installedLanguages as $key => $value) {
if (
isset($defaultLanguages[$key]['version']) &&
$defaultLanguages[$key]['version'] > $value['version'] &&
isset($defaultLanguages[$key]['date']) &&
$defaultLanguages[$key]['date'] > $value['date']
) {
copy('core/module/install/ressource/i18n/' . $key . '.json', self::I18N_DIR . $key . '.json');
$this->setData(['language', $key, $defaultLanguages[$key]]);
}
}
// Mise à jour des données core
include('core/include/update.inc.php');