From f45be5c15a24518f46161d16ed99165a3daceba8 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Sat, 9 Mar 2024 10:00:17 -0300 Subject: [PATCH] Bug 19605: Clarify method name Signed-off-by: Tomas Cohen Arazi Signed-off-by: Pedro Amorim Signed-off-by: Katrin Fischer --- Koha/Illrequest/Config.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Koha/Illrequest/Config.pm b/Koha/Illrequest/Config.pm index 3c0356389e..61220a0eb2 100644 --- a/Koha/Illrequest/Config.pm +++ b/Koha/Illrequest/Config.pm @@ -104,16 +104,16 @@ sub backend_dir { return $self->{configuration}->{backend_directory}; } -=head3 get_installed_backend_plugins +=head3 get_backend_plugin_names - $backends = $config->get_installed_backend_plugins; + my @backend_names = $config->get_backend_plugin_names(); -Returns a list of all installed ILL backend plugins +Returns a list of names for all the installed ILL backend plugins. =cut -sub get_installed_backend_plugins { - my ( $self, $reduce ) = @_; +sub get_backend_plugin_names { + my ( $self ) = @_; my @backend_plugins = Koha::Plugins->new()->GetPlugins( { @@ -140,7 +140,7 @@ sub available_backends { my ( $self, $reduce ) = @_; # New way of loading backends: Through plugins - my @backend_plugins_names = $self->get_installed_backend_plugins; + my @backend_plugins_names = $self->get_backend_plugin_names; # Old way of loading backends: Through backend_dir config my $backend_dir = $self->backend_dir; -- 2.39.5