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:
parent
70c05df8d8
commit
982e5c0906
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue