summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-12-29 05:58:33 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-12-29 05:58:33 +0000
commit137a87afd5dac7bb248be02d1277d6a007171aa2 (patch)
tree47b5da83fdc7f5fdeff5836e6e07b4054a8b3de8
parentf62d23f008367d403f6f75a1673c673b2137f49b (diff)
userdir fixes
-rw-r--r--IkiWiki.pm2
-rwxr-xr-xMakefile.PL2
-rwxr-xr-xikiwiki.in1
3 files changed, 3 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 960d4da99..8f7d8d20b 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -320,7 +320,7 @@ sub bestlink ($$) { #{{{
} while $cwd=~s!/?[^/]+$!!;
if (length $config{userdir} && exists $links{"$config{userdir}/".lc($link)}) {
- return $links{"$config{userdir}/".lc($link)};
+ return "$config{userdir}/".lc($link);
}
#print STDERR "warning: page $page, broken link: $link\n";
diff --git a/Makefile.PL b/Makefile.PL
index e0eaf4e32..ab67aae74 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -26,7 +26,7 @@ PROBABLE_INST_LIB=$(shell \\
extra_build:
./ikiwiki.in doc html --templatedir=templates --underlaydir=basewiki \
--wikiname="ikiwiki" --verbose --no-rcs \
- --exclude=/discussion --no-discussion \
+ --exclude=/discussion --no-discussion --userdir=users \
--plugin=goodstuff \
--plugin=haiku --plugin=polygen --plugin=fortune
./mdwn2man ikiwiki 1 doc/usage.mdwn > ikiwiki.man
diff --git a/ikiwiki.in b/ikiwiki.in
index c762712ba..5b1f57d16 100755
--- a/ikiwiki.in
+++ b/ikiwiki.in
@@ -46,6 +46,7 @@ sub getconfig () { #{{{
"timeformat=s" => \$config{timeformat},
"sslcookie!" => \$config{sslcookie},
"httpauth!" => \$config{httpauth},
+ "userdir=s" => \$config{userdir},
"exclude=s@" => sub {
push @{$config{wiki_file_prune_regexps}}, $_[1];
},