зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e5bee5635a
Коммит
f1c29b820a
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче