fixed a bug introduced with the new <theme> option

This commit is contained in:
Jordi Sanfeliu 2013-07-10 10:38:22 +02:00
parent a23ffd2c08
commit 1002848255
1 changed files with 5 additions and 1 deletions

View File

@ -247,10 +247,14 @@ if(lc($config{httpd_builtin}->{enabled} ne "y")) {
$colors{graph_colors} = ();
$colors{warning_color} = "--color=CANVAS#880000";
# keep backwards compatibility for v3.2.1 and less
if(ref($config{theme}) ne "HASH") {
delete($config{theme});
}
if(!$config{theme}->{$color}) {
$color = "white";
# keep backwards compatibility for v3.2.1 and less
$config{theme}->{$color}->{main_bg} = "FFFFFF";
$config{theme}->{$color}->{main_fg} = "000000";
$config{theme}->{$color}->{title_bg} = "777777";