Bugzilla – Attachment 47651 Details for
Bug 15743
Allow plugins to embed Perl modules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15743: Allow plugins to embed Perl modules
Bug-15743-Allow-plugins-to-embed-Perl-modules.patch (text/plain), 904 bytes, created by
Julian Maurice
on 2016-02-04 16:53:22 UTC
(
hide
)
Description:
Bug 15743: Allow plugins to embed Perl modules
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2016-02-04 16:53:22 UTC
Size:
904 bytes
patch
obsolete
>From 54ec738cfde97feb87a80106131ff419f3423e5b Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 4 Feb 2016 17:42:42 +0100 >Subject: [PATCH] Bug 15743: Allow plugins to embed Perl modules > >This patch allows plugins to embed Perl modules by ignoring Perl modules >in plugins directory that don't inherit from Koha::Plugins::Base >--- > Koha/Plugins.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm >index 9e2d4eb..d905554 100644 >--- a/Koha/Plugins.pm >+++ b/Koha/Plugins.pm >@@ -63,6 +63,8 @@ sub GetPlugins { > > foreach my $plugin_class (@plugin_classes) { > if ( can_load( modules => { $plugin_class => undef } ) ) { >+ next unless $plugin_class->isa('Koha::Plugins::Base'); >+ > my $plugin = $plugin_class->new({ enable_plugins => $self->{'enable_plugins'} }); > > if ($method) { >-- >1.9.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 15743
:
47651
|
47657
|
47696