added in 'monitorix.cgi' default initialization of some options

This commit is contained in:
Jordi Sanfeliu 2016-01-25 18:18:52 +01:00
parent d63494dc16
commit 845317f83d
1 changed files with 8 additions and 0 deletions

View File

@ -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);