aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type
diff options
context:
space:
mode:
authorPim van den Berg2013-05-13 20:41:14 +0200
committerPim van den Berg2013-05-13 20:41:14 +0200
commita2814f6a4b46a5d9e86146c837ae11343dde4ea7 (patch)
tree0e821febc948da493ecb40a31ecfdbf4df0e80ab /type
parenttype: stick to the rrdgraph time specification (diff)
downloadapt-panopticon_cgp-a2814f6a4b46a5d9e86146c837ae11343dde4ea7.zip
apt-panopticon_cgp-a2814f6a4b46a5d9e86146c837ae11343dde4ea7.tar.gz
apt-panopticon_cgp-a2814f6a4b46a5d9e86146c837ae11343dde4ea7.tar.bz2
apt-panopticon_cgp-a2814f6a4b46a5d9e86146c837ae11343dde4ea7.tar.xz
move width/heigth from plugins to type __construct
Diffstat (limited to 'type')
-rw-r--r--type/Default.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index b8fd95e..514d1c1 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -32,6 +32,10 @@ class Type_Default {
32 $this->parse_get(); 32 $this->parse_get();
33 $this->rrd_files(); 33 $this->rrd_files();
34 $this->identifiers = $this->file2identifier($this->files); 34 $this->identifiers = $this->file2identifier($this->files);
35 $this->width = GET('x');
36 if (empty($this->width)) $this->width = $config['width'];
37 $this->heigth = GET('y');
38 if (empty($this->heigth)) $this->heigth = $config['heigth'];
35 } 39 }
36 40
37 function rainbow_colors() { 41 function rainbow_colors() {