From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 08:33:28 +0000 (+0000) Subject: Avoid "conditional and" for setting $static_or_dynamic X-Git-Tag: debian/2.1.2-2~89 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=c0f091c8da872e0180d46e27393e3a31c12ebdb4;p=pkg%2Fblosxom.git Avoid "conditional and" for setting $static_or_dynamic --- 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