X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=11143b198c6da35850928c1b2f77eb6861a2bddb;hp=dca7e01e75476342c15b5110993249d62c695b47;hb=26ad3f96fbc541fcd32ac772462f793bc619e275;hpb=05db44dead78cc33a8fdd2d168b0d3047de43f1b diff --git a/blosxom.cgi b/blosxom.cgi index dca7e01..11143b1 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -553,7 +553,6 @@ $entries = sub { my $param_all = param('-all'); find( sub { - my $d; my $curr_depth = $File::Find::dir =~ tr[/][]; return if $depth and $curr_depth > $depth; @@ -585,7 +584,7 @@ $entries = sub { or stat($static_file)->mtime < $mtime ) { $indexes{$1} = 1; - $d = join( '/', ( nice_date($mtime) )[ 5, 2, 3 ] ); + my $d = join( '/', ( nice_date($mtime) )[ 5, 2, 3 ] ); $indexes{$d} = $d; $indexes{ ( $1 ? "$1/" : '' ) . "$2.$file_extension" } = 1 if $static_entries; @@ -619,11 +618,7 @@ my ( $files, $indexes, $others ) = &$entries(); %indexes = %$indexes; # Static -if ( !$ENV{GATEWAY_INTERFACE} - and param('-password') - and $static_password - and param('-password') eq $static_password ) -{ +if ( $static_or_dynamic eq 'static' ) { param('-quiet') or print "Blosxom is generating static index pages...\n";