File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Koha/Plugin/Com/PTFSEurope Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use File::Basename qw( dirname );
1717use Koha::Libraries;
1818use Koha::Patrons;
1919
20- our $VERSION = " 2.0.3 " ;
20+ our $VERSION = " 2.0.4 " ;
2121
2222our $metadata = {
2323 name => ' PluginBackend' ,
@@ -168,15 +168,11 @@ Required method utilized by I<Koha::ILL::Request> load_backend
168168sub 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
You can’t perform that action at this time.
0 commit comments