Parcourir la source

Fix one more thing

Andy Baugh il y a 11 mois
Parent
commit
17b53ff09d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/Trog/Themes.pm

+ 1 - 1
lib/Trog/Themes.pm

@@ -20,7 +20,7 @@ Utility functions for getting themed paths.
 our $template_dir = 'www/templates';
 
 sub get_dir {
-    state $tdir;
+    state $tdir = '';
     return $tdir if $tdir;
     my $conf = Trog::Config::get();
     $tdir = "www/themes/" . $conf->param('general.theme') if $conf->param('general.theme') && -d "www/themes/" . $conf->param('general.theme');