From e6ab9b4b60b68a556e8d39eebd53e4d6a85cc203 Mon Sep 17 00:00:00 2001 From: Travis Hegner Date: Mon, 29 Jun 2015 12:54:31 -0400 Subject: [PATCH] had to pull WxH out into vars to use in the image tag --- html/includes/functions.inc.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 77b119f783..56380fabc6 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -337,12 +337,23 @@ function print_graph_tag($args) function generate_graph_tag($args) { $urlargs = array(); + $w = 0; + $h = 0; foreach ($args as $key => $arg) { + if(strtolower($key) == 'width') + $w = $arg; + switch (strtolower($key)) { + case 'width': + $w = $arg; + break; + case 'height': + $h = $arg; + } $urlargs[] = $key."=".urlencode($arg); } - return ''; + return ''; } function generate_graph_js_state($args) {