Commit 3c684eb 1 parent 501fe6c commit 3c684eb Copy full SHA for 3c684eb
File tree 1 file changed +5
-9
lines changed
Koha/Plugin/Com/PTFSEurope
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 );
17
17
use Koha::Libraries;
18
18
use Koha::Patrons;
19
19
20
- our $VERSION = " 2.0.3 " ;
20
+ our $VERSION = " 2.0.4 " ;
21
21
22
22
our $metadata = {
23
23
name => ' PluginBackend' ,
@@ -168,15 +168,11 @@ Required method utilized by I<Koha::ILL::Request> load_backend
168
168
sub new_ill_backend {
169
169
my ( $self , $params ) = @_ ;
170
170
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 ;
178
174
179
- return $backend ;
175
+ return $self ;
180
176
}
181
177
182
178
=head3 create
You can’t perform that action at this time.
0 commit comments