From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 09:02:49 +0000 (+0000) Subject: Avoid "conditional and" for setting the %f entries hash X-Git-Tag: debian/2.1.2-2~85 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=085e1915fad00c742f49b5e8d84cae6ca0e07511;p=pkg%2Fblosxom.git Avoid "conditional and" for setting the %f entries hash --- diff --git a/blosxom.cgi b/blosxom.cgi index f4666d0..2875b44 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -453,7 +453,7 @@ sub generate { if ( $currentdir =~ /(.*?)([^\/]+)\.(.+)$/ and $2 ne 'index' ) { $currentdir = "$1$2.$file_extension"; - $files{"$datadir/$1$2.$file_extension"} and %f = ( "$datadir/$1$2.$file_extension" => $files{"$datadir/$1$2.$file_extension"} ); + %f = ( "$datadir/$currentdir" => $files{"$datadir/$currentdir"} ) if $files{"$datadir/$currentdir"}; } else { $currentdir =~ s!/index\..+$!!;