commit f0ea9f9fa6bfc1b5833deb0bc7cff1e2f7010a5f
parent c4b1ee54437e364f36bd41879253ab424b2cc7cc
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Thu, 19 Mar 2015 01:25:42 -0600
pc_fcgi: fix template include path
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc_fcgi b/pc_fcgi
@@ -72,7 +72,7 @@ my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV, $socket,
FCGI::FAIL_ACCEPT_ON_INTR);
print "info: making template, include_path = $http_cfg{htdocs}\n" if ($args{v});
-my $config = { INCLUDE_PATH => $http_cfg{"htdocs"} };
+my $config = { INCLUDE_PATH => "$http_cfg{htdocs}/tt" };
my $template = Template->new($config) || die $Template::ERROR . "\n";
# db query we take input from the user for
@@ -101,7 +101,7 @@ while ($request->Accept() >= 0) {
results => $products
};
- $template->process("tt/search.tt", $vars) or print $template->error();
+ $template->process("search.tt", $vars) or print "template: " . $template->error();
}
syslog(LOG_INFO, "shutdown");
closelog();