From b644f15d00d5b1b3f1b9e69290888dc792920dc9 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 25 Aug 2016 20:16:03 +0200 Subject: [PATCH] Ticket Integria: 3951 Changed workaround to generate api module graphs #31 (cherry picked from commit 95b162f63a1479883a369fac884300edd8e640d8) --- pandora_console/include/functions_api.php | 72 +++++++++++++++-------- 1 file changed, 49 insertions(+), 23 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index c62915c819..b9b92e78da 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -8890,29 +8890,55 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) { '', false, false, true, time(), '', 0, 0, true, true, ui_get_full_url(false) . '/', 1, false, '', false, true); - $graph_image_file_encoded = false; - - // Get the src of the html item - if (preg_match("/ 'string', 'data' => $graph_image_file_encoded)); - } + $graph_image_file_encoded = false; + if (preg_match("/ 'string', 'data' => '')); + // To show only the base64 code, call returnData as: + // returnData('string', array('type' => 'string', 'data' => $graph_image_file_encoded)); + } } ?>