ugh, use subpages for discussion as a special case

master
joey 2006-03-19 23:56:50 +00:00
parent 5604901eac
commit d1cef7a6ab
1 changed files with 8 additions and 1 deletions

View File

@ -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![^/]+/$!!;