X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=c998450d3307823b7a9898f19c1b43a6663c1a0e;hp=9b5fe21a53779a7aee9e65a4fd1daa2bb6924821;hb=8da3fb7b396075fb54cade8c29ba0be045b9e627;hpb=6e4d2a693de64c92111ca3227b37c9dab4301d8c diff --git a/blosxom.cgi b/blosxom.cgi index 9b5fe21..c998450 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -405,7 +405,14 @@ sub generate { # Plugins: Interpolate # Allow for the first encountered plugin::interpolate subroutine to # override the default built-in interpolate subroutine - my $tmp; foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('interpolate') and defined($tmp = $plugin->interpolate()) and $interpolate = $tmp and last; } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('interpolate') ) { + if ( my $tmp = $plugin->interpolate() ) { + $interpolate = $tmp; + last; + } + } + } # Head my $head = (&$template($currentdir,'head',$flavour));