CMXX - ServiceReport email in user language
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user