Commit aa15abb8 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: even when given -url DBAdaptor should still be prepared to load registry. Thanks, Magali!

parent e3516eef
......@@ -50,6 +50,11 @@ sub new {
$url .= ';nosqlvc=1' if($url && $no_sql_schema_version_check);
if($reg_conf or $reg_alias) { # need to initialize Registry even if $reg_conf is not really given
require Bio::EnsEMBL::Registry;
Bio::EnsEMBL::Registry->load_all($reg_conf); # if undefined, default reg_conf will be used
}
my $self;
if($url) {
......@@ -59,9 +64,6 @@ sub new {
} elsif($reg_alias) {
require Bio::EnsEMBL::Registry;
Bio::EnsEMBL::Registry->load_all($reg_conf); # if undefined, default reg_conf will be used
$reg_type ||= 'hive';
$self = Bio::EnsEMBL::Registry->get_DBAdaptor($reg_alias, $reg_type)
......
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