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 "foot"
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 7dba6352befb8dedb882a345f02c3a17c7eda7c2..3138fcc7e24a6918edbeddb9505bbc3d4c2bbed8 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-528,7
+528,11
@@
sub generate {
my $foot = (&$template($currentdir,'foot',$flavour));
# Plugins: Foot
my $foot = (&$template($currentdir,'foot',$flavour));
# Plugins: Foot
- foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('foot') and $entries = $plugin->foot($currentdir, \$foot) }
+ foreach my $plugin (@plugins) {
+ if ( $plugins{$plugin} > 0 and $plugin->can('foot') ) {
+ $entries = $plugin->foot( $currentdir, \$foot );
+ }
+ }
$foot = &$interpolate($foot);
$output .= $foot;
$foot = &$interpolate($foot);
$output .= $foot;