From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:14:53 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "head" X-Git-Tag: v2_1_0~65 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=ed43f9cbb775f818ea14ed642f9f386a6283c000;p=matthijs%2Fupstream%2Fblosxom.git Avoid "conditional and" for running plugins "head" --- diff --git a/blosxom.cgi b/blosxom.cgi index c998450..7fff463 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -418,7 +418,11 @@ sub generate { my $head = (&$template($currentdir,'head',$flavour)); # Plugins: Head - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('head') and $entries = $plugin->head($currentdir, \$head) } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('head') ) { + $entries = $plugin->head( $currentdir, \$head ); + } + } $head = &$interpolate($head);