Преглед на файлове

allow theming default.tx

George S. Baugh преди 5 години
родител
ревизия
58f317cd4a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/Trog/Routes/HTML.pm

+ 1 - 1
lib/Trog/Routes/HTML.pm

@@ -222,7 +222,7 @@ sub index ($query,$render_cb, $content = '', $i_styles = []) {
         path =>  "www/$theme_dir/templates",
     ) if $theme_dir;
 
-    $content ||= _pick_processor($rightbar,$processor,$t_processor)->render($landing_page,$query);
+    $content ||= _pick_processor("templates/$landing_page",$processor,$t_processor)->render($landing_page,$query);
 
     my @styles = ('/styles/avatars.css');
     if ($theme_dir) {