diff options
Diffstat (limited to 'graph.php')
| -rw-r--r-- | graph.php | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -83,9 +83,11 @@ if (isset($plugin_json[$type]['legend'])) { | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | if (isset($plugin_json[$type]['title'])) { | 85 | if (isset($plugin_json[$type]['title'])) { |
| 86 | $obj->rrd_title = $plugin_json[$type]['title']; | 86 | $obj->rrd_title = str_replace( |
| 87 | $obj->rrd_title = str_replace('{{PI}}', GET('pi'), $obj->rrd_title); | 87 | array('{{PI}}', '{{TI}}', '{{HOST}}'), |
| 88 | $obj->rrd_title = str_replace('{{TI}}', GET('ti'), $obj->rrd_title); | 88 | array(GET('pi'), GET('ti'), GET('h')), |
| 89 | $plugin_json[$type]['title'] | ||
| 90 | ); | ||
| 89 | } | 91 | } |
| 90 | 92 | ||
| 91 | if (isset($plugin_json[$type]['vertical'])) { | 93 | if (isset($plugin_json[$type]['vertical'])) { |
