From 2ab8884f500071258f8bf5dcfa69eef3cb979fee Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 6 Aug 2023 21:49:33 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9placement=20du=20scrip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v13/{ => tools}/cleanmodules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename v13/{ => tools}/cleanmodules.php (89%) diff --git a/v13/cleanmodules.php b/v13/tools/cleanmodules.php similarity index 89% rename from v13/cleanmodules.php rename to v13/tools/cleanmodules.php index 368e65d..8a76a3b 100644 --- a/v13/cleanmodules.php +++ b/v13/tools/cleanmodules.php @@ -11,11 +11,11 @@ foreach ($languages as $langCode => $langFile) { $mainLangFile = $langFile; if (is_file($mainLangFile)) { - $mainLangData = json_decode(file_get_contents($mainLangFile), true); + $mainLangData = json_decode(file_get_contents('../' . $mainLangFile), true); // Parcourir les sous-dossiers des modules foreach ($moduleSubdirs as $subdir) { - $moduleLangFile = 'modules/' . $subdir . '/' . $langFile; + $moduleLangFile = '../modules/' . $subdir . '/' . $langFile; if (is_file($moduleLangFile)) { $moduleLangData = json_decode(file_get_contents($moduleLangFile), true);