aboutsummaryrefslogtreecommitdiffstats
path: root/page.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-08-25 02:46:25 +0000
committerjustdave%syndicomm.com <>2003-08-25 02:46:25 +0000
commit36b4d0d3fb9d34dac8c604eea202590000298195 (patch)
tree6203a76815b26f22aeb0e5311b5f6bcaa88bd47a /page.cgi
parent92509a8b4b5dc64fdc49e549fd5f308407e30ee4 (diff)
downloadbugs-36b4d0d3fb9d34dac8c604eea202590000298195.tar
bugs-36b4d0d3fb9d34dac8c604eea202590000298195.tar.gz
bugs-36b4d0d3fb9d34dac8c604eea202590000298195.tar.bz2
bugs-36b4d0d3fb9d34dac8c604eea202590000298195.tar.xz
bugs-36b4d0d3fb9d34dac8c604eea202590000298195.zip
Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so it actually works now.
r=gerv, a=justdave
Diffstat (limited to 'page.cgi')
-rwxr-xr-xpage.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/page.cgi b/page.cgi
index 2b229e0b6..1f1ef768f 100755
--- a/page.cgi
+++ b/page.cgi
@@ -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 {