X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUID.pm;h=3863256f80039d6925014272673422f0780d0dac;hp=d3ee8d81031b40e09abf9741fb55bc91338d1418;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=d5988a9f7a3617de33da3058f2e9f1151b24420e diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm index d3ee8d810..3863256f8 100644 --- a/FS/FS/UID.pm +++ b/FS/FS/UID.pm @@ -9,7 +9,7 @@ use vars qw( ); use subs qw( getsecrets ); use Carp qw( carp croak cluck confess ); -use DBI; +use FS::DBI; use IO::File; use FS::CurrentUser; @@ -172,14 +172,16 @@ sub callback_setup { } sub myconnect { - my $handle = DBI->connect( getsecrets(), { 'AutoCommit' => 0, - 'ChopBlanks' => 1, - 'ShowErrorStatement' => 1, - 'pg_enable_utf8' => 1, - #'mysql_enable_utf8' => 1, - } - ) - or die "DBI->connect error: $DBI::errstr\n"; + my $handle = FS::DBI->connect( + getsecrets(), + { + 'AutoCommit' => 0, + 'ChopBlanks' => 1, + 'ShowErrorStatement' => 1, + 'pg_enable_utf8' => 1, + # 'mysql_enable_utf8' => 1, + } + ) or die "FS::DBI->connect error: $FS::DBI::errstr\n"; $FS::Conf::conf_cache = undef;