Bugzilla – Attachment 103496 Details for
Bug 25222
Add ability to let plugins live in individual subdirectories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25222: (QA follow-up) Update @INC when calling Koha::Plugins::new
Bug-25222-QA-follow-up-Update-INC-when-calling-Koh.patch (text/plain), 1.35 KB, created by
Kyle M Hall (khall)
on 2020-04-22 16:47:40 UTC
(
hide
)
Description:
Bug 25222: (QA follow-up) Update @INC when calling Koha::Plugins::new
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-04-22 16:47:40 UTC
Size:
1.35 KB
patch
obsolete
>From abe2bc6e9403e88eba47b5e8ddbe53e9943b2c5c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 22 Apr 2020 12:46:35 -0400 >Subject: [PATCH] Bug 25222: (QA follow-up) Update @INC when calling > Koha::Plugins::new > >--- > Koha/Plugins.pm | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > >diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm >index 52d0e70d64..a64ac1abac 100644 >--- a/Koha/Plugins.pm >+++ b/Koha/Plugins.pm >@@ -30,7 +30,15 @@ use C4::Context; > use C4::Output; > use Koha::Plugins::Methods; > >-BEGIN { >+=head1 NAME >+ >+Koha::Plugins - Module for loading and managing plugins. >+ >+=cut >+ >+sub new { >+ my ( $class, $args ) = @_; >+ > my $pluginsdir = C4::Context->config("pluginsdir"); > my @pluginsdir = ref($pluginsdir) eq 'ARRAY' ? @$pluginsdir : $pluginsdir; > foreach my $dir ( @pluginsdir ) { >@@ -39,19 +47,11 @@ BEGIN { > ->directory > ->in($dir); > >- push( @INC, @dirs ); >+ foreach my $d ( @dirs ) { >+ push( @INC, @dirs ) unless any { $_ eq $d } @INC; >+ } > } > pop @INC if $INC[-1] eq '.'; >-} >- >-=head1 NAME >- >-Koha::Plugins - Module for loading and managing plugins. >- >-=cut >- >-sub new { >- my ( $class, $args ) = @_; > > return unless ( C4::Context->config("enable_plugins") || $args->{'enable_plugins'} ); > >-- >2.24.2 (Apple Git-127)
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 25222
:
103311
|
103317
|
103389
|
103495
| 103496