Apply defaults before loading the theme
* This prevents uninitialized values from being used if the user's theme doesn't contain every item we need.
This commit is contained in:
parent
1145bd37e9
commit
fb2715a43b
1 changed files with 5 additions and 1 deletions
|
@ -340,7 +340,11 @@ sub themed($)
|
|||
{
|
||||
my $k = shift;
|
||||
unless ( %THEME ) {
|
||||
%THEME = ( %{ &load_theme } , %{ $CONFIG{layout_theme_overrides} } );
|
||||
%THEME = (
|
||||
%{ &default_theme } ,
|
||||
%{ &load_theme } ,
|
||||
%{ $CONFIG{layout_theme_overrides} }
|
||||
);
|
||||
my @to_resolve = grep { ref( $THEME{$_} ) eq 'ThemeRef' } keys %THEME;
|
||||
foreach my $k ( @to_resolve ) {
|
||||
theme_resolve( $k );
|
||||
|
|
Loading…
Reference in a new issue