From ed43f9cbb775f818ea14ed642f9f386a6283c000 Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:14:53 +0000 Subject: [PATCH] Avoid "conditional and" for running plugins "head" --- blosxom.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.2