diff options
Diffstat (limited to 'graph.php')
-rw-r--r-- | graph.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -86,7 +86,16 @@ if (isset($plugin_json[$type]['vertical'])) { | |||
86 | } | 86 | } |
87 | 87 | ||
88 | if (isset($plugin_json[$type]['rrdtool_opts'])) { | 88 | if (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 | ||
92 | if (isset($plugin_json[$type]['datasize']) and $plugin_json[$type]['datasize']) | 101 | if (isset($plugin_json[$type]['datasize']) and $plugin_json[$type]['datasize']) |