projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid "conditional and" for running plugins "filter"
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 1ee05fa378cf355818e158014307e3d33231c2e3..f4666d06e90dc5b73121862d0336f6b495a804e6 100755
(executable)
--- a/
blosxom.cgi
+++ b/
blosxom.cgi
@@
-390,7
+390,9
@@
sub generate {
%files = %$files; %others = ref $others ? %$others : ();
# Plugins: Filter
%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;
my %f = %files;