From: Gavin Carr Date: Thu, 4 Oct 2007 05:36:24 +0000 (+0000) Subject: Add comment on -z Blosxom::Plugin::Foo placeholders. X-Git-Tag: v2_1_0~38 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=commitdiff_plain;h=4765205bf6e8c276bc0bbb277cba30dff8a5ee67 Add comment on -z Blosxom::Plugin::Foo placeholders. --- diff --git a/blosxom.cgi b/blosxom.cgi index 3bd3ae9..6852746 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -293,6 +293,8 @@ foreach my $plugin (@plugin_list) { my $on_off = $off eq '_' ? -1 : 1; # Allow perl module plugins + # The -z test is a hack to allow a zero-length placeholder file in a + # $plugin_path directory to indicate an @INC module should be loaded if ( $plugin =~ m/::/ && ( $plugin_list || -z $plugin_hash{$plugin} ) ) { # For Blosxom::Plugin::Foo style plugins, we need to use a string require