Replace redundant staticness test with $static_or_dynamic check.
authorGavin Carr <gavin@openfusion.com.au>
Fri, 18 Jun 2010 17:46:29 +0000 (18:46 +0100)
committerGavin Carr <gavin@openfusion.com.au>
Fri, 18 Jun 2010 17:46:29 +0000 (18:46 +0100)
blosxom.cgi

index dca7e01..2c00547 100755 (executable)
@@ -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";