]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 217103: page.cgi passes the correct pathname prefix in the correct place, so...
authorjustdave%syndicomm.com <>
Mon, 25 Aug 2003 02:46:25 +0000 (02:46 +0000)
committerjustdave%syndicomm.com <>
Mon, 25 Aug 2003 02:46:25 +0000 (02:46 +0000)
r=gerv, a=justdave

page.cgi

index 2b229e0b68b2b8cb170f6b742fdb639cc9b83fcf..1f1ef768fdee6b0552b0cb6fff5c1f94b401bf0f 100755 (executable)
--- 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 {