From 20572387b9318dc467ea2c3ac703993ce2537ed4 Mon Sep 17 00:00:00 2001
From: Gavin Carr <gavin@openfusion.com.au>
Date: Fri, 18 Jun 2010 18:46:29 +0100
Subject: [PATCH] Replace redundant staticness test with $static_or_dynamic
 check.

---
 blosxom.cgi | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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";
 
-- 
2.30.2