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