]> git.deb.at Git - pkg/blosxom.git/blobdiff - blosxom.cgi
Avoid "conditional and" for running plugins "head"
[pkg/blosxom.git] / blosxom.cgi
index c998450d3307823b7a9898f19c1b43a6663c1a0e..7fff46341709f41d608f3e0a8650911322c4adc2 100755 (executable)
@@ -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);