From dab5784800193a94e5c8804edae5c29d8db88c24 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Sat, 10 Oct 2015 23:02:52 +0200 Subject: [PATCH] Fix #15 --- lib/Lufi.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = {