Skip to content

Commit

Permalink
compatibility fix for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
William McLaren committed Feb 16, 2017
1 parent a0b32d9 commit e79ac34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions modules/Bio/EnsEMBL/VEP/BaseVEP.pm
Expand Up @@ -128,9 +128,10 @@ sub registry {

my $config = $self->config;

return $config->{_registry} = shift if @_;

if(!exists($config->{_registry})) {
if(@_) {
$config->{_registry} = shift;
}
elsif(!exists($config->{_registry})) {

my $reg = 'Bio::EnsEMBL::Registry';

Expand Down Expand Up @@ -176,6 +177,9 @@ sub registry {
$config->{_registry} = $reg;
}

# copy to raw_config for plugin backward compatibility
$config->{_params}->{reg} ||= $config->{_registry};

return $config->{_registry};
}

Expand Down
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/Constants.pm
Expand Up @@ -20,7 +20,7 @@ use warnings;
use base qw(Exporter);

our $VEP_VERSION = 87;
our $VEP_SUB_VERSION = 23;
our $VEP_SUB_VERSION = 24;

our @EXPORT_OK = qw(
@FLAG_FIELDS
Expand Down

0 comments on commit e79ac34

Please sign in to comment.