X-Git-Url: https://git.deb.at/?p=pkg%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=9b5fe21a53779a7aee9e65a4fd1daa2bb6924821;hp=f2861dba1797d411111252dd2f7bf44aedfe3162;hb=6e4d2a693de64c92111ca3227b37c9dab4301d8c;hpb=2f585f8b41e5414917fd5b76c557e80474f6e4f2 diff --git a/blosxom.cgi b/blosxom.cgi index f2861db..9b5fe21 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -379,7 +379,16 @@ sub generate { # Plugins: Skip # Allow plugins to decide if we can cut short story generation - my $skip; foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('skip') and defined($tmp = $plugin->skip()) and $skip = $tmp and last; } + my $skip; + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('skip') ) { + if ( my $tmp = $plugin->skip() ) { + $skip = $tmp; + last; + } + } + } + # Define default interpolation subroutine $interpolate =