Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so it actually works now.

r=gerv, a=justdave
This commit is contained in:
justdave%syndicomm.com 2003-08-24 19:46:25 +00:00
parent 5f82d0b689
commit 2fa859f778

View File

@ -49,13 +49,13 @@ if ($::FORM{'id'}) {
$::FORM{'id'} =~ s/[^\w\-\.]//g;
$::FORM{'id'} =~ /(.*)\.(.*)/;
my $format = GetFormat($1, undef, $2);
my $format = GetFormat("pages/$1", undef, $2);
$vars->{'form'} = \%::FORM;
print $cgi->header($format->{'ctype'});
$template->process("pages/$format->{'template'}", $vars)
$template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error());
}
else {