supprimer le test de mise à jour de langues
This commit is contained in:
parent
f87e0677aa
commit
7684f8eb89
@ -431,19 +431,6 @@ class common
|
|||||||
// Mise à jour des données core
|
// Mise à jour des données core
|
||||||
include('core/include/update.inc.php');
|
include('core/include/update.inc.php');
|
||||||
|
|
||||||
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']
|
|
||||||
) {
|
|
||||||
copy('core/module/install/ressource/i18n/' . $key . '.json', self::I18N_DIR . $key . '.json');
|
|
||||||
$this->setData(['language', $key, $defaultLanguages[$key]]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user