From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 09:09:19 +0000 (+0000) Subject: Avoid "conditional and" for running plugins "date" X-Git-Tag: v2_1_0~54 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=2955ac75e94fafa458af50b15d376993c7fd9e85;p=matthijs%2Fupstream%2Fblosxom.git Avoid "conditional and" for running plugins "date" --- diff --git a/blosxom.cgi b/blosxom.cgi index 2875b44..2e87b75 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -505,7 +505,13 @@ sub generate { my $date = (&$template($path,'date',$flavour)); # Plugins: Date - foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('date') and $entries = $plugin->date($currentdir, \$date, $files{$path_file}, $dw,$mo,$mo_num,$da,$ti,$yr) } + foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('date') ) { + $entries + = $plugin->date( $currentdir, \$date, $files{$path_file}, $dw, + $mo, $mo_num, $da, $ti, $yr ); + } + } $date = &$interpolate($date);