2012-08-10 Sergio Martin <sergio.martin@artica.es>

* include/functions_api.php: Force the static graphs in the 
	last added function to api



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6856 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-08-10 09:04:52 +00:00
parent 70c05df8d8
commit 982e5c0906
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-08-10 Sergio Martin <sergio.martin@artica.es>
* include/functions_api.php: Force the static graphs in the
last added function to api
2012-08-10 Sergio Martin <sergio.martin@artica.es>
* include/functions_api.php: Add the missed function api_get_graph_module_data

View File

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