From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:09:02 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "skip" X-Git-Tag: debian/2.1.2-2~97 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=6e4d2a693de64c92111ca3227b37c9dab4301d8c;p=pkg%2Fblosxom.git Avoid "conditional and" for running plugins "skip" --- 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 =