From 845317f83dad3a1d3002fbc836bb183334ac58fd Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 25 Jan 2016 18:18:52 +0100 Subject: [PATCH] added in 'monitorix.cgi' default initialization of some options --- monitorix.cgi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monitorix.cgi b/monitorix.cgi index 69df2c5..5a7604b 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -343,6 +343,14 @@ if($config{backwards_compat_old_multihost}) { $tf{when} = $tf{twhen}; } +# make sure that some options are correctly defined +if(!$config{global_zoom}) { + $config{global_zoom} = 1; +} +if(!$config{image_format}) { + $config{image_format} = "PNG"; +} + our ($res, $tc, $tb, $ts); if($tf{twhen} eq "day") { ($tf{res}, $tf{tc}, $tf{tb}, $tf{ts}) = (3600, 'h', 24, 1);