From eedbd387abd946c96075dc002d598e56eb7806de Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 22 Mar 2013 04:40:36 -0700 Subject: [PATCH] Bug 9883 - Koha::Plugins::* should not require koha-conf to load - Followup - Load C4::Auth at run time Signed-off-by: Katrin Fischer Unset KOHA_CONF variable and made sure t/00_load.t passed Also ran Makefile.PL doing an update on my existing installation and checked koha-conf.xml: /home/katrin/koha-dev/var/lib/plugins 0 Signed-off-by: Jared Camins-Esakov --- Koha/Plugins/Base.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Plugins/Base.pm b/Koha/Plugins/Base.pm index b4091b7b27..3a8dc6384a 100644 --- a/Koha/Plugins/Base.pm +++ b/Koha/Plugins/Base.pm @@ -24,7 +24,6 @@ use Module::Pluggable require => 1; use base qw{Module::Bundled::Files}; use C4::Context; -use C4::Auth; =head1 NAME @@ -104,6 +103,8 @@ C4:Template, but at the moment, it does not. sub get_template { my ( $self, $args ) = @_; + require C4::Auth; + my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => $self->mbf_path( $args->{'file'} ), query => $self->{'cgi'}, -- 2.39.5