Bug 24031: Remove check for syspref UseKohaPlugins
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 22 May 2020 10:28:17 +0000 (12:28 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:30:23 +0000 (17:30 +0200)
UseKohaPlugins has been removed by bug 20415

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Plugins.pm

index 4e7926b..ae2f2c5 100644 (file)
@@ -63,7 +63,7 @@ Calls a plugin method for all enabled plugins
 sub call {
     my ($class, $method, @args) = @_;
 
-    if (C4::Context->preference('UseKohaPlugins') && C4::Context->config('enable_plugins')) {
+    if (C4::Context->config('enable_plugins')) {
         my @plugins = $class->new({ enable_plugins => 1 })->GetPlugins({ method => $method });
         my @responses;
         foreach my $plugin (@plugins) {