From d6ed37922ac9f1f8dffc136bbcf6618c3b74a03d Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 09:00:24 +0000 Subject: [PATCH] Avoid "conditional and" for running plugins "filter" --- blosxom.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5