diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5e502a690e..f46d1e43d1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-08-10 Sergio Martin + + * include/functions_api.php: Force the static graphs in the + last added function to api + 2012-08-10 Sergio Martin * include/functions_api.php: Add the missed function api_get_graph_module_data diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index f87e3d4ebc..8866463004 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -3793,6 +3793,9 @@ function api_get_graph_module_data($id, $thrash1, $other, $thrash2) { $homeurl = '../'; $ttl = 1; + global $config; + $config['flash_charts'] = 0; + $image = grafico_modulo_sparse ($id, $period, $draw_events, $width, $height , '',null, $draw_alerts, $avg_only, false, @@ -3803,7 +3806,7 @@ function api_get_graph_module_data($id, $thrash1, $other, $thrash2) { preg_match("/src='([^']*)'/i",$image, $match); if(empty($match[1])) { - echo "No data retrieved"; + echo "Error getting graph"; } else { header('Content-type: image/png');