Skip to content

Commit

Permalink
Fix new_ill_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ammopt committed Mar 28, 2024
1 parent 501fe6c commit 3c684eb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Koha/Plugin/Com/PTFSEurope/PluginBackend.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use File::Basename qw( dirname );
use Koha::Libraries;
use Koha::Patrons;

our $VERSION = "2.0.3";
our $VERSION = "2.0.4";

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

my $backend = {
_logger => $params->{logger},
_config => $params->{config},
_plugin => $self,
};

bless( $backend, $self );
$self->{_logger} = $params->{logger} if ( $params->{logger} );
$self->{_config} = $params->{config} if ( $params->{config} );
$self->{_plugin} = $self;

return $backend;
return $self;
}

=head3 create
Expand Down

0 comments on commit 3c684eb

Please sign in to comment.