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

(-)a/C4/Installer.pm (-1 / +1 lines)
Lines 68-74 sub new { Link Here
68
    my $self = {};
68
    my $self = {};
69
69
70
    # get basic information from context
70
    # get basic information from context
71
    $self->{'dbname'}   = C4::Context->config("database");
71
    $self->{'dbname'}   = C4::Context->config("database_test") || C4::Context->config("database");
72
    $self->{'dbms'}     = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql";
72
    $self->{'dbms'}     = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql";
73
    $self->{'hostname'} = C4::Context->config("hostname");
73
    $self->{'hostname'} = C4::Context->config("hostname");
74
    $self->{'port'}     = C4::Context->config("port");
74
    $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