From: justdave%syndicomm.com <> Date: Mon, 25 Aug 2003 02:46:25 +0000 (+0000) Subject: Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so... X-Git-Tag: bugzilla-2.17.5~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36b4d0d3fb9d34dac8c604eea202590000298195;p=thirdparty%2Fbugzilla.git Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so it actually works now. r=gerv, a=justdave --- diff --git a/page.cgi b/page.cgi index 2b229e0b68..1f1ef768fd 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 {