X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=c7d8887afb5e42dc2943a3a20085bbd9b9207832;hp=bba92f18a07e149f5516054e10f088d048b9e713;hb=c0f091c8da872e0180d46e27393e3a31c12ebdb4;hpb=21e1a6a3689fc99525aa3a1d3c5948aad2a2de08 diff --git a/blosxom.cgi b/blosxom.cgi index bba92f1..c7d8887 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -142,8 +142,17 @@ $depth += ($datadir =~ tr[/][]) - 1 if $depth; # Global variable to be used in head/foot.{flavour} templates $path_info = ''; -$static_or_dynamic = (!$ENV{GATEWAY_INTERFACE} and param('-password') and $static_password and param('-password') eq $static_password) ? 'static' : 'dynamic'; -$static_or_dynamic eq 'dynamic' and param(-name=>'-quiet', -value=>1); +if ( !$ENV{GATEWAY_INTERFACE} + and param('-password') + and $static_password + and param('-password') eq $static_password ) +{ + $static_or_dynamic = 'static'; +} +else { + $static_or_dynamic = 'dynamic'; + param( -name => '-quiet', -value => 1 ); +} # Path Info Magic # Take a gander at HTTP's PATH_INFO for optional blog name, archive yr/mo/day