Bugzilla – Attachment 177738 Details for
Bug 39092
When loading an ILL backend plugin it should be cached
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39092: Use pre-loaded plugin
Bug-39092-Use-pre-loaded-plugin.patch (text/plain), 1.04 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-02-11 15:17:40 UTC
(
hide
)
Description:
Bug 39092: Use pre-loaded plugin
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-02-11 15:17:40 UTC
Size:
1.04 KB
patch
obsolete
>From cfb139daeba4579911bc3ab35a8cf5d8e27ccfbf Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 11 Feb 2025 12:08:58 -0300 >Subject: [PATCH] Bug 39092: Use pre-loaded plugin > >This patch removes plugin loading from the method, and makes it leverage >on the plugin instance already loaded by `load_backend` (if any). >--- > Koha/ILL/Request.pm | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm >index 33b0babd6ba..a80cf5cc522 100644 >--- a/Koha/ILL/Request.pm >+++ b/Koha/ILL/Request.pm >@@ -1165,11 +1165,9 @@ sub expand_template { > my $backend_dir; > my $backend_tmpl; > >- my $backend_plugin = $self->get_backend_plugin( $self->_backend->name ); >- if ($backend_plugin) { >+ if ( $self->{_plugin} ) { > >- # New way of loading backends: Through plugins >- $backend_dir = $backend_plugin->bundle_path; >+ $backend_dir = $self->{_plugin}->bundle_path; > $backend_tmpl = $backend_dir; > > } elsif ( $backend eq 'Standard' ) { >-- >2.48.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39092
:
177735
|
177736
|
177737
| 177738