mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch '3177-Send_custom_report' into 'develop'
fixed error metaconsole template send template See merge request artica/pandorafms!2080 Former-commit-id: 7ed6111afafbd1537d9ac9d70096b9cfb2a16336
This commit is contained in:
commit
e84611022b
@ -3285,11 +3285,19 @@ function series_type_graph_array($data, $show_elements_graph){
|
||||
function generator_chart_to_pdf($type_graph_pdf, $params, $params_combined = false, $module_list = false){
|
||||
global $config;
|
||||
|
||||
if(is_metaconsole()){
|
||||
$hack_metaconsole = "../../";
|
||||
}
|
||||
else{
|
||||
$hack_metaconsole = "";
|
||||
}
|
||||
|
||||
$file_js = $config["homedir"] . "/include/web2image.js";
|
||||
$url = $config["homeurl"] . "include/chart_generator.php";
|
||||
$url = ui_get_full_url(false) . $hack_metaconsole ."include/chart_generator.php";
|
||||
|
||||
$img_file = "img_". uniqid() .".png";
|
||||
$img_path = $config["homedir"] . "/attachment/" . $img_file;
|
||||
$img_url = $config["homeurl"] . "attachment/" . $img_file;
|
||||
$img_url = ui_get_full_url(false) . $hack_metaconsole . "attachment/" . $img_file;
|
||||
|
||||
$width_img = 500;
|
||||
$height_img = (isset($config['graph_image_height'])) ? $config['graph_image_height'] : 280;
|
||||
|
Loading…
x
Reference in New Issue
Block a user