Pārlūkot izejas kodu

Fix one more thing

Andy Baugh 11 mēneši atpakaļ
vecāks
revīzija
17b53ff09d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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');