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