aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--graph.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/graph.php b/graph.php
index 1727c1b..3e33b92 100644
--- a/graph.php
+++ b/graph.php
@@ -86,7 +86,16 @@ if (isset($plugin_json[$type]['vertical'])) {
86} 86}
87 87
88if (isset($plugin_json[$type]['rrdtool_opts'])) { 88if (isset($plugin_json[$type]['rrdtool_opts'])) {
89 $obj->rrdtool_opts[] = $plugin_json[$type]['rrdtool_opts']; 89 $rrdtool_extra_opts = $plugin_json[$type]['rrdtool_opts'];
90 # compatibility with plugins which specify arguments as string
91 if (is_string($rrdtool_extra_opts)) {
92 $rrdtool_extra_opts = explode(' ', $rrdtool_extra_opts);
93 }
94
95 $obj->rrdtool_opts = array_merge(
96 $obj->rrdtool_opts,
97 $rrdtool_extra_opts
98 );
90} 99}
91 100
92if (isset($plugin_json[$type]['datasize']) and $plugin_json[$type]['datasize']) 101if (isset($plugin_json[$type]['datasize']) and $plugin_json[$type]['datasize'])