Move orphaned 'my $d' in default entries inline.
authorGavin Carr <gavin@openfusion.com.au>
Fri, 18 Jun 2010 19:15:31 +0000 (20:15 +0100)
committerGavin Carr <gavin@openfusion.com.au>
Fri, 18 Jun 2010 19:15:31 +0000 (20:15 +0100)
blosxom.cgi

index 2c0054797a4cd61b85083cbfda9491cd259e5bba..11143b198c6da35850928c1b2f77eb6861a2bddb 100755 (executable)
@@ -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;