X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=ee085a38503133baeabd150cff5e7d849500f66d;hp=2875b44a6b8917df9f5c4789bf14c44d2a9523ef;hb=aba7cd50d01142480d706bba489f0076bab740f9;hpb=085e1915fad00c742f49b5e8d84cae6ca0e07511 diff --git a/blosxom.cgi b/blosxom.cgi index 2875b44..ee085a3 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -505,11 +505,20 @@ 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); - $curdate ne $date and $curdate = $date and $output .= $date; + if ( $date && $curdate ne $date ) { + $curdate = $date; + $output .= $date; + } use vars qw/ $title $body $raw /; if (-f "$path_file" && $fh->open("< $path_file")) {