Skip to content

Commit 3c684eb

Browse files
committed
Fix new_ill_backend
1 parent 501fe6c commit 3c684eb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Koha/Plugin/Com/PTFSEurope/PluginBackend.pm

+5-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use File::Basename qw( dirname );
1717
use Koha::Libraries;
1818
use Koha::Patrons;
1919

20-
our $VERSION = "2.0.3";
20+
our $VERSION = "2.0.4";
2121

2222
our $metadata = {
2323
name => 'PluginBackend',
@@ -168,15 +168,11 @@ Required method utilized by I<Koha::ILL::Request> load_backend
168168
sub new_ill_backend {
169169
my ( $self, $params ) = @_;
170170

171-
my $backend = {
172-
_logger => $params->{logger},
173-
_config => $params->{config},
174-
_plugin => $self,
175-
};
176-
177-
bless( $backend, $self );
171+
$self->{_logger} = $params->{logger} if ( $params->{logger} );
172+
$self->{_config} = $params->{config} if ( $params->{config} );
173+
$self->{_plugin} = $self;
178174

179-
return $backend;
175+
return $self;
180176
}
181177

182178
=head3 create

0 commit comments

Comments
 (0)