X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=blosxom.cgi;h=f45aff7d262d3b4c8c5bf427d1c86b2acbe71045;hb=1fda4e76f5ad09d00e53a478bf694b47c32809f4;hp=7dba6352befb8dedb882a345f02c3a17c7eda7c2;hpb=d2e0affcaba618080eaaad930aa2b79bfd899a8d;p=pkg%2Fblosxom.git diff --git a/blosxom.cgi b/blosxom.cgi index 7dba635..f45aff7 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -528,13 +528,21 @@ sub generate { 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; # Plugins: Last - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('last') and $entries = $plugin->last() } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('last') ) { + $entries = $plugin->last(); + } + } } # End skip