diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 109738920..681ac41dc 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -5013,10 +5013,14 @@ $current_theme = $current_themes[0]; @theme_root_directories = map { "$root_directory/$_" } @current_themes; $theme_root_directory = $theme_root_directories[0]; @theme_configs = ( ); +my $theme_tconfig = "$config_directory/$current_theme/config"; foreach my $troot (@theme_root_directories) { my %onetconfig; &read_file_cached("$troot/config", \%onetconfig); &read_file_cached("$troot/config", \%tconfig); + if (-r $theme_tconfig) { + &read_file_cached($theme_tconfig, \%tconfig); + } push(@theme_configs, \%onetconfig); } $tb = defined($tconfig{'cs_header'}) ? "bgcolor=\"#$tconfig{'cs_header'}\"" :