From efe6eab5f3f0a5c09f6e295e366c8d20731e8c89 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Apr 2021 23:09:23 +0200 Subject: [PATCH] Save default langueg and other language in export of website --- htdocs/website/class/website.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index a82d749a547..6e3f0113432 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -1091,6 +1091,12 @@ class Website extends CommonObject } } + $line .= "\n-- For Dolibarr v14+ --\n"; + $line .= "UPDATE llx_website SET fk_default_lang = '".$this->fk_default_lang."' WHERE rowid = __WEBSITE_ID__;\n"; + $line .= "UPDATE llx_website SET otherlang = '".$this->otherlang."' WHERE rowid = __WEBSITE_ID__;\n"; + $line .= "\n"; + fputs($fp, $line); + fclose($fp); if (!empty($conf->global->MAIN_UMASK)) { @chmod($filesql, octdec($conf->global->MAIN_UMASK));