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 dca7e01e75476342c15b5110993249d62c695b47..2c0054797a4cd61b85083cbfda9491cd259e5bba 100755 (executable)
@@ -619,11 +619,7 @@ my ( $files, $indexes, $others ) = &$entries();
 %indexes = %$indexes;
 
 # Static
 %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";
 
 
     param('-quiet') or print "Blosxom is generating static index pages...\n";