Make db->init() more sensible, config->db_connect is the only one handling the db connection (remote db->init from config->new)
This commit is contained in:
@@ -20,7 +20,6 @@ sub new {
|
||||
$self->{'localcheck'} = My::parser::localcheck->new;
|
||||
$self->{'block'} = My::parser::block->new($self->{'config'});
|
||||
$self->{'db'} = My::parser::db->new($self->{'config'});
|
||||
$self->{'db'}->init();
|
||||
$self->{'config'}->set_db($self->{'db'});
|
||||
return $self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user