commit 9819c99d5ada437450eeb18ffa53e5e2e8279fe0
parent 6ac626c4b6a4f79a68c0225a636aa1bbe15e973c
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Wed, 4 Feb 2015 00:20:54 -0700
pricechart_fcgi: use get_dbh properly, convert hardcoded path
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pricechart_fcgi b/pricechart_fcgi
@@ -65,7 +65,7 @@ if (-e $socket_file) {
my $socket = FCGI::OpenSocket($socket_file, 1024);
print "info: open $socket_file ok\n" if ($args{v});
-my $dbh = get_dbh($db_dir);
+my $dbh = get_dbh($cfg->{"general"}, $db_dir);
print "info: open $db_dir/pricechart.db ok\n" if ($args{v});
my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV,
@@ -75,7 +75,7 @@ $SIG{INT} = \&child_sig;
$SIG{TERM} = \&child_sig;
my $config = {
- INCLUDE_PATH => "/htdocs/pricechart/templates"
+ INCLUDE_PATH => $cfg->{"http"}{"templates"}
};
my $template = Template->new($config) || die $Template::ERROR . "\n";
print "info: template config ok\n" if ($args{v});