diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-19 23:56:50 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-19 23:56:50 +0000 |
commit | d1cef7a6ab70740fc74ff143b62a6a3570af75af (patch) | |
tree | 3361be97f15e8f584f63a3934d417aa3a08b985b /ikiwiki | |
parent | 5604901eac5b26f0417276371efbea06d3613799 (diff) |
ugh, use subpages for discussion as a special case
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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![^/]+/$!!; |