From 5a08d9e4f939817c47f8f274b6e562782edd5179 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 29 Jun 2016 16:43:54 +0200 Subject: [PATCH] Nur noch ein DB-Hanlde pro Request zum Client aufmachen --- SL/DB.pm | 8 ++++++++ SL/Form.pm | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/SL/DB.pm b/SL/DB.pm index f133e6af6..f12584754 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -34,6 +34,14 @@ sub create { return $db; } +sub client { + create(undef, 'KIVITENDO'); +} + +sub auth { + create(undef, 'KIVITENDO_AUTH'); +} + sub _register_db { my $domain = shift; my $type = shift; diff --git a/SL/Form.pm b/SL/Form.pm index fb5dffe9b..64d09d124 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1436,7 +1436,7 @@ sub get_standard_dbh { undef $standard_dbh; } - $standard_dbh ||= $self->dbconnect_noauto($myconfig); + $standard_dbh ||= SL::DB->create(undef, 'KIVITENDO')->dbh; $main::lxdebug->leave_sub(2); -- 2.20.1