X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=2c0054797a4cd61b85083cbfda9491cd259e5bba;hp=fef5750e3d07ba7370ab01fac21bac8a6190c795;hb=e6cea9aa9aa1c5038a6b1f9282d584f99a8f98a1;hpb=165fdb1063fd125dbd8a42bdb0cd054e6e904df3 diff --git a/blosxom.cgi b/blosxom.cgi index fef5750..2c00547 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 ) { @@ -618,11 +619,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";