aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type/Base.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'type/Base.class.php')
-rw-r--r--type/Base.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/type/Base.class.php b/type/Base.class.php
index 70b95b5..adb8fb1 100644
--- a/type/Base.class.php
+++ b/type/Base.class.php
@@ -245,10 +245,13 @@ class Type_Base {
245 if (is_numeric($this->cache) && $this->cache > 0) 245 if (is_numeric($this->cache) && $this->cache > 0)
246 header("Expires: " . date(DATE_RFC822,strtotime($this->cache." seconds"))); 246 header("Expires: " . date(DATE_RFC822,strtotime($this->cache." seconds")));
247 247
248 if ($style === 'svg') 248 if ($style === 'svg') {
249 header("content-type: image/svg+xml"); 249 header("content-type: image/svg+xml");
250 else 250 header('Content-Disposition: filename="' . $this->rrd_title . '.svg"');
251 } else {
251 header("content-type: image/png"); 252 header("content-type: image/png");
253 header('Content-Disposition: filename="' . $this->rrd_title . '.png"');
254 }
252 255
253 $shellcmd = array_merge( 256 $shellcmd = array_merge(
254 $this->rrd_graph_command($style), 257 $this->rrd_graph_command($style),