Commit 9c00a177 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Add new database usage symantics

parent 33fed428
......@@ -259,11 +259,7 @@ sub plugin_init
# Create DBI agent
if (defined($globals->{'Database'})) {
$globals->{'Database'}->{'Handle'} = DBInit({
'DSN' => $globals->{'Database'}->{'DSN'},
'Username' => $globals->{'Database'}->{'Username'},
'Password' => $globals->{'Database'}->{'Password'}
});
$globals->{'Database'}->{'Handle'} = DBInit($globals->{'Database'});
# Check if handle is defined
if (defined($globals->{'Database'}->{'Handle'})) {
# Try connect (0 is success)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment