From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:14:53 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "head" X-Git-Tag: debian/2.1.2-2~95 X-Git-Url: https://git.deb.at/?p=pkg%2Fblosxom.git;a=commitdiff_plain;h=ed43f9cbb775f818ea14ed642f9f386a6283c000 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);