summaryrefslogtreecommitdiffstats
path: root/page.cgi
diff options
context:
space:
mode:
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 {