Merge branch 'master' of https://forge.chapril.org/ZwiiCMS-TEAM/ZwiiCMS
This commit is contained in:
commit
f87e0677aa
@ -431,6 +431,19 @@ 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