From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:22:43 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "foot" X-Git-Tag: debian/2.1.2-2~92 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=0ad7d4599157a22a4ac1526a20a463a9a9d21061;p=pkg%2Fblosxom.git Avoid "conditional and" for running plugins "foot" --- diff --git a/blosxom.cgi b/blosxom.cgi index 7dba635..3138fcc 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -528,7 +528,11 @@ sub generate { my $foot = (&$template($currentdir,'foot',$flavour)); # Plugins: Foot - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('foot') and $entries = $plugin->foot($currentdir, \$foot) } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('foot') ) { + $entries = $plugin->foot( $currentdir, \$foot ); + } + } $foot = &$interpolate($foot); $output .= $foot;