X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUID.pm;h=3863256f80039d6925014272673422f0780d0dac;hb=c2dbe36096332d1e09bc58d7d9903e05247f0c9b;hp=693e5d9521810e9b5387c618f0aa1f9500c6f97d;hpb=dfeca08f8d935d127d99de4690e2d5edf4f78b95;p=freeside.git diff --git a/FS/FS/UID.pm b/FS/FS/UID.pm index 693e5d952..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; @@ -220,7 +222,7 @@ sub install_callback { =item cgi -Returns the CGI (see L) object. +(Deprecated) Returns the CGI (see L) object. =cut @@ -230,9 +232,9 @@ sub cgi { $cgi; } -=item cgi CGI_OBJECT +=item setcgi CGI_OBJECT -Sets the CGI (see L) object. +(Deprecated) Sets the CGI (see L) object. =cut