mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Ticket integria:3621 fixed image in mail #75
(cherry picked from commit 653da41402c00359ed204296fe18bfd0c7b78013)
This commit is contained in:
parent
e66a06aac6
commit
dcb67e2207
@ -8937,8 +8937,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…
x
Reference in New Issue
Block a user