From 05db44dead78cc33a8fdd2d168b0d3047de43f1b Mon Sep 17 00:00:00 2001 From: Gavin Carr Date: Fri, 18 Jun 2010 18:39:06 +0100 Subject: [PATCH] Move entries param('-all') check outside find. --- blosxom.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blosxom.cgi b/blosxom.cgi index fef5750..dca7e01 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -550,6 +550,7 @@ sub load_template { # Define default entries subroutine $entries = sub { my ( %files, %indexes, %others ); + my $param_all = param('-all'); find( sub { my $d; @@ -579,7 +580,7 @@ $entries = sub { # static rendering bits my $static_file = "$static_dir/$1/index." . $static_flavours[0]; - if ( param('-all') + if ( $param_all or !-f $static_file or stat($static_file)->mtime < $mtime ) { -- 2.30.2