Source

shlomi-fish-homepage / lib / local-defs.wml

Diff from to

File lib/local-defs.wml

 $filename =~ s!index\.html$!!;
 $filename = "/$filename";
 
-my $expanded_nav_bar = <get-var object_class />->new(
+use vars qw($shlomif_main_expanded_nav_bar);
+$shlomif_main_expanded_nav_bar = <get-var object_class />->new(
     'path_info' => $filename,
     'current_host' => "<latemp_default_val "<get-var latemp_server />" "$(LATEMP_SERVER)" />",
     MyNavData->generic_get_params({ fully_expanded => 1}),
     'no_leading_dot' => 1,
     );
 
-my $rendered_results = $expanded_nav_bar->render();
+my $rendered_results = $shlomif_main_expanded_nav_bar->render();
 
 # use Data::Dumper; die Dumper($rendered_results);
 my $shlomif_nav_links = $rendered_results->{nav_links};