my $csv_config;
sub init {
- our %config;
if ($PGHOST and $PGPORT and $PGUSER and $PGDATABASE)
{
$dbh = connect_db($PGDATABASE,$PGUSER,undef,$PGHOST) or die $DBI::errstr;
} else {
+ our %config;
do '/openils/conf/offline-config.pl';
$dbh = DBI->connect( $config{dsn}, $config{usr}, $config{pw} ) or die $DBI::errstr;
}