From 39ca2ff699bac79043bbeac9534dbf1f28df4d2b Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 12 Jan 2014 14:56:19 +0100 Subject: add graph_type "hybrid" to show canvas on detail page, png on the others --- detail.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'detail.php') diff --git a/detail.php b/detail.php index 524c708..4eacc80 100644 --- a/detail.php +++ b/detail.php @@ -11,6 +11,10 @@ if (empty($_GET['x'])) if (empty($_GET['y'])) $_GET['y'] = $CONFIG['detail-height']; +# set graph_type to canvas if hybrid +if ($CONFIG['graph_type'] == 'hybrid') + $CONFIG['graph_type'] = 'canvas'; + $host = validate_get(GET('h'), 'host'); $plugin = validate_get(GET('p'), 'plugin'); $pinstance = validate_get(GET('pi'), 'pinstance'); -- cgit v1.1