Bugzilla – Attachment 63933 Details for
Bug 18721
C4::Installer uses Koha::Database instead
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18721 - C4::Installer uses Koha::Database instead
Bug-18721---C4Installer-uses-KohaDatabase-instead.patch (text/plain), 2.06 KB, created by
Olli-Antti Kivilahti
on 2017-06-02 09:41:55 UTC
(
hide
)
Description:
Bug 18721 - C4::Installer uses Koha::Database instead
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2017-06-02 09:41:55 UTC
Size:
2.06 KB
patch
obsolete
>From bdade8ba473da3e40db97c6491811ecd81699464 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Fri, 2 Jun 2017 12:35:45 +0300 >Subject: [PATCH] Bug 18721 - C4::Installer uses Koha::Database instead > >--- > C4/Installer.pm | 22 +--------------------- > 1 file changed, 1 insertion(+), 21 deletions(-) > >diff --git a/C4/Installer.pm b/C4/Installer.pm >index cf7d9a1..8975cf3 100644 >--- a/C4/Installer.pm >+++ b/C4/Installer.pm >@@ -73,29 +73,9 @@ sub new { > > my $self = {}; > >- # get basic information from context >- $self->{'dbname'} = C4::Context->config("database"); >- $self->{'dbms'} = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql"; >- $self->{'hostname'} = C4::Context->config("hostname"); >- $self->{'port'} = C4::Context->config("port"); >- $self->{'user'} = C4::Context->config("user"); >- $self->{'password'} = C4::Context->config("pass"); >- $self->{'tls'} = C4::Context->config("tls"); >- if( $self->{'tls'} && $self->{'tls'} eq 'yes' ) { >- $self->{'ca'} = C4::Context->config('ca'); >- $self->{'cert'} = C4::Context->config('cert'); >- $self->{'key'} = C4::Context->config('key'); >- $self->{'tlsoptions'} = ";mysql_ssl=1;mysql_ssl_client_key=".$self->{key}.";mysql_ssl_client_cert=".$self->{cert}.";mysql_ssl_ca_file=".$self->{ca}; >- $self->{'tlscmdline'} = " --ssl-cert ". $self->{cert} . " --ssl-key " . $self->{key} . " --ssl-ca ".$self->{ca}." " >- } >- $self->{'dbh'} = DBI->connect("DBI:$self->{dbms}:dbname=$self->{dbname};host=$self->{hostname}" . >- ( $self->{port} ? ";port=$self->{port}" : "" ). >- ( $self->{tlsoptions} ? $self->{tlsoptions} : ""), >- $self->{'user'}, $self->{'password'}); >+ $self->{'dbh'} = C4::Context->dbh(); > $self->{'language'} = undef; > $self->{'marcflavour'} = undef; >- $self->{'dbh'}->do('set NAMES "utf8"'); >- $self->{'dbh'}->{'mysql_enable_utf8'}=1; > > bless $self, $class; > return $self; >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18721
: 63933 |
64423