projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid "conditional and" for running plugins "head"
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index c998450d3307823b7a9898f19c1b43a6663c1a0e..7fff46341709f41d608f3e0a8650911322c4adc2 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-418,7
+418,11
@@
sub generate {
my $head = (&$template($currentdir,'head',$flavour));
# Plugins: Head
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);
$head = &$interpolate($head);