From c2e701837278d4d6fb5f9b4b58865f88110492c4 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 12 Mar 2020 09:38:05 +0100 Subject: [PATCH] Multi-language support --- plugins/dynamix/include/FileUpload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dynamix/include/FileUpload.php b/plugins/dynamix/include/FileUpload.php index 757fb39f0..abe64efa5 100644 --- a/plugins/dynamix/include/FileUpload.php +++ b/plugins/dynamix/include/FileUpload.php @@ -52,6 +52,7 @@ case 'add': $result = file_put_contents("/$boot/$file.lang.zip",base64_decode(preg_replace('/^data:.*;base64,/','',$_POST['filedata']))); if ($result) { foreach (glob("$path/*.dot",GLOB_NOSORT) as $dot) unlink($dot); + @unlink("$docroot/webGui/javascript/translate.$file.js"); exec("unzip -qqjLo -d ".escapeshellarg($path)." ".escapeshellarg("$boot/$file.lang.zip")); } $installed = [];