projects
/
matthijs
/
upstream
/
blosxom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for multiple plugin directories using $plugin_path.
[matthijs/upstream/blosxom.git]
/
blosxom.cgi
diff --git
a/blosxom.cgi
b/blosxom.cgi
index 3b915c5644a33ded46a3ddad5752c535cf0252b3..02230245f3c086c61dd0f0135cb8e4f26aa11c70 100755
(executable)
--- 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 = "";
# (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?
$plugin_path = "";
# Where should my plugins keep their state information?
@@
-197,7
+198,8
@@
while (<DATA>) {
}
# Plugins: Start
}
# 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 = ();
my @plugin_list = ();
my %plugin_hash = ();