mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed the hbars for the report exception item. TICKET: #3153
(cherry picked from commit 63566dd3af4fc1701ba147d745c7e4663802cbbd)
This commit is contained in:
parent
5679fa3f48
commit
9710362174
@ -1964,23 +1964,30 @@ function reporting_exception($report, $content, $type = 'dinamic',
|
|||||||
$config['fontpath'],
|
$config['fontpath'],
|
||||||
$config['font_size'],
|
$config['font_size'],
|
||||||
$ttl);
|
$ttl);
|
||||||
$return["chart"]["hbar"] = hbar_graph(
|
|
||||||
false,
|
|
||||||
$data_hbar,
|
$params = array(
|
||||||
600,
|
'flash_chart' => false,
|
||||||
100,
|
'chart_data' => $data_hbar,
|
||||||
array(),
|
'width' => 600,
|
||||||
array(),
|
'height' => 25 * count($data_hbar),
|
||||||
"",
|
'color' => array(),
|
||||||
"",
|
'legend' => array(),
|
||||||
true,
|
'long_index' => array(),
|
||||||
ui_get_full_url(false, false, false, false),
|
'no_data_image' => ui_get_full_url("images/image_problem.opaque.png", false, false, false),
|
||||||
ui_get_full_url(false, false, false, false) . "/images/logo_vertical_water.png",
|
'xaxisname' => "",
|
||||||
'',
|
'yaxisname' => "",
|
||||||
'',
|
'water_mark' => ui_get_full_url(false, false, false, false) . "/images/logo_vertical_water.png",
|
||||||
true,
|
'font' => "",
|
||||||
$ttl,
|
'font_size' => "",
|
||||||
true);
|
'unit' => "",
|
||||||
|
'ttl' => $ttl,
|
||||||
|
'homeurl' => ui_get_full_url(false, false, false, false),
|
||||||
|
'backgroundColor' => 'white'
|
||||||
|
);
|
||||||
|
$return["chart"]["hbar"] = call_user_func_array(
|
||||||
|
'hbar_graph',
|
||||||
|
$params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -579,7 +579,7 @@ function hbar_graph($flash_chart, $chart_data, $width, $height,
|
|||||||
|
|
||||||
$id_graph = serialize_in_temp($graph, null, $ttl);
|
$id_graph = serialize_in_temp($graph, null, $ttl);
|
||||||
|
|
||||||
return "<img src='" . $homedir . "include/graphs/functions_pchart.php?static_graph=1&graph_type=hbar&ttl=".$ttl."&id_graph=".$id_graph."'>";
|
return "<img src='" . $homeurl . "include/graphs/functions_pchart.php?static_graph=1&graph_type=hbar&ttl=".$ttl."&id_graph=".$id_graph."'>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user