Ticket integria:3621 fixed image in mail #75
This commit is contained in:
parent
a051243b64
commit
653da41402
|
@ -8974,8 +8974,12 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) {
|
||||||
// returnError('error_module_graph', __(''));
|
// returnError('error_module_graph', __(''));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
header('Content-type: text/html');
|
if($other['data'] < 40000){
|
||||||
returnData('string', array('type' => 'string', 'data' => '<img src="data:image/jpeg;base64,' . $graph_image_file_encoded . '">'));
|
header('Content-type: text/html');
|
||||||
|
returnData('string', array('type' => 'string', 'data' => '<img src="data:image/jpeg;base64,' . $graph_image_file_encoded . '">'));
|
||||||
|
} else {
|
||||||
|
returnData('string', array('type' => 'string', 'data' => $graph_image_file_encoded));
|
||||||
|
}
|
||||||
// To show only the base64 code, call returnData as:
|
// To show only the base64 code, call returnData as:
|
||||||
// returnData('string', array('type' => 'string', 'data' => $graph_image_file_encoded));
|
// returnData('string', array('type' => 'string', 'data' => $graph_image_file_encoded));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue