From: joey Date: Sun, 19 Mar 2006 23:56:50 +0000 (+0000) Subject: ugh, use subpages for discussion as a special case X-Git-Tag: 1.0~293 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d1cef7a6ab70740fc74ff143b62a6a3570af75af;p=ikiwiki.git ugh, use subpages for discussion as a special case --- diff --git a/ikiwiki b/ikiwiki index 38dae8f24..2130c4f78 100755 --- a/ikiwiki +++ b/ikiwiki @@ -1131,8 +1131,15 @@ sub cgi_editpage ($$) { #{{{ else { my $dir=$from."/"; $dir=~s![^/]+/$!!; + + if ($page eq 'discussion') { + $best_loc="$from/$page"; + } + else { + $best_loc=$dir.$page; + } + push @page_locs, $dir.$page; - $best_loc=$dir.$page; push @page_locs, "$from/$page"; while (length $dir) { $dir=~s![^/]+/$!!;