X-Git-Url: https://git.deb.at/?p=pkg%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=bba92f18a07e149f5516054e10f088d048b9e713;hp=3138fcc7e24a6918edbeddb9505bbc3d4c2bbed8;hb=21e1a6a3689fc99525aa3a1d3c5948aad2a2de08;hpb=0ad7d4599157a22a4ac1526a20a463a9a9d21061 diff --git a/blosxom.cgi b/blosxom.cgi index 3138fcc..bba92f1 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -538,12 +538,16 @@ sub generate { $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 # Finally, add the header, if any and running dynamically - $static_or_dynamic eq 'dynamic' and $header and $output = header($header) . $output; + $output = header($header) . $output if ($static_or_dynamic eq 'dynamic' and $header); $output; }