[otrs-cvs] otrs/Kernel/System CustomerCompany.pm,1.38,1.39

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv31688/Kernel/System

Modified Files:
	CustomerCompany.pm 
Log Message:
Moved Connect parts to CustomerCompany and CustomerUser Params configuration.

Author: jh

Index: CustomerCompany.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/CustomerCompany.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -2 -u -d -r1.38 -r1.39
--- CustomerCompany.pm	29 Nov 2012 12:59:54 -0000	1.38
+++ CustomerCompany.pm	3 Dec 2012 10:37:10 -0000	1.39
@@ -121,5 +121,5 @@
 
     # charset settings
-    my %DatabasePreferences;
+    my $DatabasePreferences = $Self->{ConfigObject}->Get('CustomerCompany')->{Params} || {};
     $Self->{SourceCharset}
         = $Self->{ConfigObject}->Get('CustomerCompany')->{Params}->{SourceCharset} || '';
@@ -129,6 +129,5 @@
         = $Self->{ConfigObject}->Get('CustomerCompany')->{Params}->{CharsetConvertForce} || '';
     if ( $Self->{SourceCharset} !~ /utf(-8|8)/i ) {
-        $DatabasePreferences{Encode}  = 0;
-        $DatabasePreferences{Connect} = '';
+        $DatabasePreferences->{Encode} = 0;
     }
 
@@ -144,5 +143,5 @@
             DatabasePw   => $Self->{ConfigObject}->Get('CustomerCompany')->{Params}->{Password},
             Type         => $Self->{ConfigObject}->Get('CustomerCompany')->{Params}->{Type} || '',
-            %DatabasePreferences,
+            %{$DatabasePreferences},
         ) || die('Can\'t connect to database!');
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.