From 31910f6e949c3106e386abdf0fa59228c96bfde1 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 8 Sep 2023 20:49:11 +0200 Subject: [PATCH] 13002 --- core/include/pre-update.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/include/pre-update.php b/core/include/pre-update.php index 241cf60a..2f93b979 100644 --- a/core/include/pre-update.php +++ b/core/include/pre-update.php @@ -42,7 +42,7 @@ if (file_exists('site/data/core.json')) { foreach ($t as $k => $v) { if (file_exists($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); unlink($k); } @@ -50,6 +50,9 @@ if (file_exists('site/data/core.json')) { if (file_exists('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'); + } } } \ No newline at end of file