X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=3138fcc7e24a6918edbeddb9505bbc3d4c2bbed8;hp=49dd4c2da57281c2bcb59151a0b61cfae3d88cf2;hb=0ad7d4599157a22a4ac1526a20a463a9a9d21061;hpb=3a72032199c6b85617b33db0132edadf47ccd330 diff --git a/blosxom.cgi b/blosxom.cgi index 49dd4c2..3138fcc 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -502,7 +502,11 @@ sub generate { my $story = (&$template($path,'story',$flavour)); # Plugins: Story - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('story') and $entries = $plugin->story($path, $fn, \$story, \$title, \$body) } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('story') ) { + $entries = $plugin->story( $path, $fn, \$story, \$title, \$body ); + } + } if ($content_type =~ m{\bxml\b}) { # Escape <, >, and &, and to produce valid RSS @@ -524,7 +528,11 @@ 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;