From d2e0affcaba618080eaaad930aa2b79bfd899a8d Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 06:21:01 +0000 Subject: [PATCH] Avoid "conditional and" for running plugins "story" --- blosxom.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blosxom.cgi b/blosxom.cgi index 49dd4c2..7dba635 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -502,7 +502,11 @@ sub generate { my $story = (&$template($path,'story',$flavour)); # Plugins: Story - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('story') and $entries = $plugin->story($path, $fn, \$story, \$title, \$body) } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('story') ) { + $entries = $plugin->story( $path, $fn, \$story, \$title, \$body ); + } + } if ($content_type =~ m{\bxml\b}) { # Escape <, >, and &, and to produce valid RSS -- 2.39.2