CMXX - ServiceReport email in user language

This commit is contained in:
“VeLiTi”
2024-11-25 19:27:45 +01:00
parent f033e3037e
commit 79edab3cc6
5 changed files with 7 additions and 7 deletions

View File

@@ -1025,11 +1025,11 @@ function serviceEvents ($messages,$page){
// Service report //Input = servicereport
//------------------------------------------
function serviceReport($history, $request)
function serviceReport($history, $request, $country_code)
{
if(isset($_SESSION['country_code'])){
$api_file_language = dirname(__FILE__,2).'/settings/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';
if(isset($country_code) && $country_code != ''){
$api_file_language = dirname(__FILE__,2).'/settings/translations/translations_'.strtoupper($country_code).'.php';
if (file_exists($api_file_language)){
include $api_file_language; //Include the code
}