X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FUser.pm;h=21c3689f936b029ca68201c1422bfde3d54f0516;hb=014161b801605beb68878f0045da995bccad0a1a;hp=2de54ee5ebe5edb7d2da4414c12b95e4bec01871;hpb=4fa7102b36468079313df9e579f7537d49aab859;p=kivitendo-erp.git diff --git a/SL/User.pm b/SL/User.pm index 2de54ee5e..21c3689f9 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -136,7 +136,6 @@ sub login { $dbh->disconnect; if ($update_available) { - $form->{"stylesheet"} = "lx-office-erp.css"; $form->{"title"} = $main::locale->text("Dataset upgrade"); $form->header(); print $form->parse_html_template("dbupgrade/header"); @@ -150,7 +149,7 @@ sub login { } # update the tables - if (!open(FH, ">", $::lx_office_conf{paths}->{userspath} . "/nologin")) { + if (!$::lx_office_conf{debug}->{keep_installation_unlocked} && !open(FH, ">", $::lx_office_conf{paths}->{userspath} . "/nologin")) { $form->show_generic_error($main::locale->text('A temporary file could not be created. ' . 'Please verify that the directory "#1" is writeable by the webserver.', $::lx_office_conf{paths}->{userspath}), @@ -173,13 +172,7 @@ sub login { # remove lock file unlink($::lx_office_conf{paths}->{userspath} . "/nologin"); - my $menufile = - $self->{"menustyle"} eq "v3" ? "menuv3.pl" : - $self->{"menustyle"} eq "neu" ? "menunew.pl" : - $self->{"menustyle"} eq "js" ? "menujs.pl" : - "menu.pl"; - - print $form->parse_html_template("dbupgrade/footer", { "menufile" => $menufile }); + print $form->parse_html_template("dbupgrade/footer"); $rc = -2; } @@ -405,6 +398,8 @@ sub dbcreate { do_query($form, $dbh, $query, $form->{profit_determination}); $query = "UPDATE defaults SET inventory_system = ?"; do_query($form, $dbh, $query, $form->{inventory_system}); + $query = "UPDATE defaults SET curr = ?"; + do_query($form, $dbh, $query, $form->{defaultcurrency}); $dbh->disconnect; @@ -790,4 +785,3 @@ sub data { } 1; -