This commit is contained in:
Fred Tempez 2023-09-08 20:49:11 +02:00
parent e2bd95780b
commit 31910f6e94
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,7 @@ if (file_exists('site/data/core.json')) {
foreach ($t as $k => $v) { foreach ($t as $k => $v) {
if (file_exists($k)) { if (file_exists($k)) {
$d = file_get_contents($k); $d = file_get_contents($k);
$d = str_replace(basename($k, '.json'), basename($v, '.json'), $d); $d = str_replace('"' . basename($k, '.json') . '"' , '"' . basename($v, '.json') . '"', $d);
file_put_contents($v, $d); file_put_contents($v, $d);
unlink($k); unlink($k);
} }
@ -50,6 +50,9 @@ if (file_exists('site/data/core.json')) {
if (file_exists('core/module/install/ressource/i18n/languages.json')) { if (file_exists('core/module/install/ressource/i18n/languages.json')) {
unlink('core/module/install/ressource/i18n/languages.json'); unlink('core/module/install/ressource/i18n/languages.json');
} }
if (file_exists('core/module/install/ressource/i18n/fontes.json')) {
unlink('core/module/install/ressource/i18n/fonte.json');
}
} }
} }