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