From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 09:00:24 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "filter" X-Git-Tag: v2_1_0~56 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=commitdiff_plain;h=d6ed37922ac9f1f8dffc136bbcf6618c3b74a03d Avoid "conditional and" for running plugins "filter" --- diff --git a/blosxom.cgi b/blosxom.cgi index 1ee05fa..f4666d0 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -390,7 +390,9 @@ sub generate { %files = %$files; %others = ref $others ? %$others : (); # Plugins: Filter - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('filter') and $entries = $plugin->filter(\%files, \%others) } + foreach my $plugin ( @plugins ) { + if ($plugins{$plugin} > 0 and $plugin->can('filter')){ $entries = $plugin->filter(\%files, \%others); } + } my %f = %files;