diff --git a/lib/Lufi.pm b/lib/Lufi.pm index 0aa474e..99ec3a5 100644 --- a/lib/Lufi.pm +++ b/lib/Lufi.pm @@ -29,12 +29,15 @@ sub startup { die "You need to provide a contact information in lufi.conf!" unless (defined($self->config('contact'))); # Themes handling - shift @{$self->app->renderer->paths}; + shift @{$self->renderer->paths}; + shift @{$self->static->paths}; if ($config->{theme} ne 'default') { my $theme = $self->home->rel_dir('themes/'.$config->{theme}); push @{$self->renderer->paths}, $theme.'/templates' if -d $theme.'/templates'; + push @{$self->static->paths}, $theme.'/public' if -d $theme.'/public'; } push @{$self->renderer->paths}, $self->home->rel_dir('themes/default/templates'); + push @{$self->static->paths}, $self->home->rel_dir('themes/default/public'); # Mail config my $mail_config = {