fixed error metaconsole template send template

Former-commit-id: 2b92b353a4811d6aec22e2a61c128cc24b01ba14
This commit is contained in:
daniel 2018-12-13 12:47:22 +01:00
parent 3d24bc264e
commit a76895f20e
1 changed files with 10 additions and 2 deletions

View File

@ -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;