From: Gavin Carr Date: Fri, 18 Jun 2010 17:46:29 +0000 (+0100) Subject: Replace redundant staticness test with $static_or_dynamic check. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=20572387b9318dc467ea2c3ac703993ce2537ed4;p=matthijs%2Fupstream%2Fblosxom.git Replace redundant staticness test with $static_or_dynamic check. --- diff --git a/blosxom.cgi b/blosxom.cgi index dca7e01..2c00547 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -619,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";