diff options
| author | Pim van den Berg | 2013-05-13 20:41:14 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2013-05-13 20:41:14 +0200 |
| commit | a2814f6a4b46a5d9e86146c837ae11343dde4ea7 (patch) | |
| tree | 0e821febc948da493ecb40a31ecfdbf4df0e80ab /type | |
| parent | type: stick to the rrdgraph time specification (diff) | |
| download | apt-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.php | 4 |
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() { |
