Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so…

Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so it actually works now. r=gerv, a=justdave
parent 92509a8b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment