Bugzilla – Attachment 16710 Details for
Bug 9883
Koha::Plugins::* should not require koha-conf to load
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9883 - Koha::Plugins::* should not require koha-conf to load - Followup - Load C4::Auth at run time
Bug-9883---KohaPlugins-should-not-require-koha-con.patch (text/plain), 1.26 KB, created by
Kyle M Hall (khall)
on 2013-03-22 08:32:35 UTC
(
hide
)
Description:
Bug 9883 - Koha::Plugins::* should not require koha-conf to load - Followup - Load C4::Auth at run time
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-03-22 08:32:35 UTC
Size:
1.26 KB
patch
obsolete
>From 101537bcf711e0e8c064273a6a3c19c580961d21 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 22 Mar 2013 01:31:44 -0700 >Subject: [PATCH] Bug 9883 - Koha::Plugins::* should not require koha-conf to load - Followup - Load C4::Auth at run time > >--- > C4/Installer/PerlDependencies.pm | 5 +++++ > Koha/Plugins/Base.pm | 3 ++- > 2 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm >index 535a377..bc51028 100644 >--- a/C4/Installer/PerlDependencies.pm >+++ b/C4/Installer/PerlDependencies.pm >@@ -674,6 +674,11 @@ our $PERL_DEPS = { > 'required' => '0', > 'min_ver' => '3.9', > }, >+ 'Module::Load' => { >+ 'usage' => 'Plugins', >+ 'required' => '0', >+ 'min_ver' => '0.16', >+ }, > }; > > 1; >diff --git a/Koha/Plugins/Base.pm b/Koha/Plugins/Base.pm >index 3b0ab15..776f698 100644 >--- a/Koha/Plugins/Base.pm >+++ b/Koha/Plugins/Base.pm >@@ -20,13 +20,14 @@ package Koha::Plugins::Base; > use Modern::Perl; > > use Module::Pluggable require => 1; >+use Module::Load; > > use base qw{Module::Bundled::Files}; > > use C4::Context; >-use C4::Auth; > > BEGIN { >+ load C4::Auth; > push @INC, C4::Context->config("pluginsdir"); > } > >-- >1.7.2.5
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 9883
:
16570
|
16597
|
16640
|
16710
|
16727
|
16777
|
16782
|
16786
|
16787
|
16788