fix bugs vc serialez module string donuts and bars charts

This commit is contained in:
Daniel Barbero Martin 2020-11-24 10:59:42 +01:00
parent 1ce0a8cba8
commit 2428558a39
1 changed files with 3 additions and 1 deletions

View File

@ -167,10 +167,12 @@ final class DonutGraph extends Item
);
} else {
$src = 'images/console/signes/wrong_donut_graph.png';
if (\is_metaconsole() === true && $metaconsoleId !== null) {
if (\is_metaconsole() === true) {
$src = '../../'.$src;
}
$src = ui_get_full_url($src);
$style = 'width:'.$width.'px; height:'.$height.'px;';
$data['html'] = '<img src="'.$src.'" style="'.$style.'">';
}