X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=blobdiff_plain;f=blosxom.cgi;h=0182001a89cb435569319d82ee6076fb8eb7e57d;hp=3b915c5644a33ded46a3ddad5752c535cf0252b3;hb=27f7b38a770074a5906af933a9e41a6dbe7ce8a9;hpb=343580fa063c235453fdfe5d19beb8ad03eb6e80 diff --git a/blosxom.cgi b/blosxom.cgi index 3b915c5..0182001 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -51,7 +51,8 @@ $show_future_entries = 0; # (if empty blosxom will load all plugins in $plugin_path directories) $plugin_list = ""; -# Where are my plugins kept? (list of directories, separated by ':') +# Where are my plugins kept? +# List of directories, separated by ';' on windows, ':' everywhere else $plugin_path = ""; # Where should my plugins keep their state information? @@ -197,7 +198,8 @@ while () { } # Plugins: Start -my @plugin_dirs = split /:/, ($plugin_path || $plugin_dir); +my $path_sep = $^O eq 'MSWin32' ? ';' : ':'; +my @plugin_dirs = split /$path_sep/, ($plugin_path || $plugin_dir); my @plugin_list = (); my %plugin_hash = (); @@ -239,7 +241,7 @@ foreach my $plugin ( @plugin_list ) { else { eval { require $plugin }; } - $@ and warn "error finding or loading blosxom plugin $plugin_name - skipping\n" and next; + $@ and warn "$@ error finding or loading blosxom plugin $plugin_name - skipping\n" and next; $plugin_name->start() and ( $plugins{$plugin_name} = $on_off ) and push @plugins, $plugin_name; } shift @INC foreach @plugin_dirs;