X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=1ee05fa378cf355818e158014307e3d33231c2e3;hp=2c6b6ee17d1e7e5692668cba4f5be2d3297ff4dd;hb=35adf25fd50df6682d227833899a1a1c22885695;hpb=2e7cf5294e63848b2f862b9ce828d54994a7ab52 diff --git a/blosxom.cgi b/blosxom.cgi index 2c6b6ee..1ee05fa 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -317,7 +317,14 @@ $entries = # Plugins: Entries # Allow for the first encountered plugin::entries subroutine to override the # default built-in entries subroutine -my $tmp; foreach my $plugin ( @plugins ) { $plugins{$plugin} > 0 and $plugin->can('entries') and defined($tmp = $plugin->entries()) and $entries = $tmp and last; } +foreach my $plugin (@plugins) { + if ( $plugins{$plugin} > 0 and $plugin->can('entries') ) { + if ( my $tmp = $plugin->entries() ) { + $entries = $tmp; + last; + } + } +} my ($files, $indexes, $others) = &$entries(); %indexes = %$indexes;