aboutsummaryrefslogtreecommitdiff
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
parentBug 160422: If data/versioncache is not readable, pretend it's expired and re... (diff)
downloadbugzilla-36b4d0d3fb9d34dac8c604eea202590000298195.tar.gz
bugzilla-36b4d0d3fb9d34dac8c604eea202590000298195.tar.bz2
bugzilla-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 {