View | Details | Raw Unified | Return to bug 19821
Collapse All | Expand All

(-)a/C4/Installer.pm (-1 / +1 lines)
Lines 69-75 sub new { Link Here
69
    my $self = {};
69
    my $self = {};
70
70
71
    # get basic information from context
71
    # get basic information from context
72
    $self->{'dbname'}   = C4::Context->config("database");
72
    $self->{'dbname'}   = C4::Context->config("database_test") || C4::Context->config("database");
73
    $self->{'dbms'}     = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql";
73
    $self->{'dbms'}     = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql";
74
    $self->{'hostname'} = C4::Context->config("hostname");
74
    $self->{'hostname'} = C4::Context->config("hostname");
75
    $self->{'port'}     = C4::Context->config("port");
75
    $self->{'port'}     = C4::Context->config("port");
(-)a/Koha/Database.pm (-1 / +1 lines)
Lines 53-59 sub _new_schema { Link Here
53
53
54
    my $db_driver = $context->{db_driver};
54
    my $db_driver = $context->{db_driver};
55
55
56
    my $db_name   = $context->config("database");
56
    my $db_name   = $context->config("database_test") || $context->config("database");
57
    my $db_host   = $context->config("hostname");
57
    my $db_host   = $context->config("hostname");
58
    my $db_port   = $context->config("port") || '';
58
    my $db_port   = $context->config("port") || '';
59
    my $db_user   = $context->config("user");
59
    my $db_user   = $context->config("user");
(-)a/installer/install.pl (-2 / +1 lines)
Lines 56-62 if ( defined($language) ) { Link Here
56
56
57
my $installer = C4::Installer->new();
57
my $installer = C4::Installer->new();
58
my %info;
58
my %info;
59
$info{'dbname'} = C4::Context->config("database");
59
$info{'dbname'} = C4::Context->config("database_test") || C4::Context->config("database");
60
$info{'dbms'}   = (
60
$info{'dbms'}   = (
61
      C4::Context->config("db_scheme")
61
      C4::Context->config("db_scheme")
62
    ? C4::Context->config("db_scheme")
62
    ? C4::Context->config("db_scheme")
63
- 

Return to bug 19821