From a2814f6a4b46a5d9e86146c837ae11343dde4ea7 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 13 May 2013 20:41:14 +0200 Subject: move width/heigth from plugins to type __construct --- type/Default.class.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'type') 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 { $this->parse_get(); $this->rrd_files(); $this->identifiers = $this->file2identifier($this->files); + $this->width = GET('x'); + if (empty($this->width)) $this->width = $config['width']; + $this->heigth = GET('y'); + if (empty($this->heigth)) $this->heigth = $config['heigth']; } function rainbow_colors() { -- cgit v1.1