Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 9971 - Plugins system is broken!

Trying to run a plugin results in the following error:

Software error:

Undefined subroutine &Koha::Plugins::Base::get_template_and_user called
at /home/koha/kohaclone/Koha/Plugins/Base.pm line 108.

The is caused by the change from 'use C4::Auth' to 'require C4::Auth'
which does not export get_template_and_user.

Test Plan:
1) Install the KitchenSink plugin
2) Try to run the report, tool or configuration for the plugin
3) Note the error
4) Apply the patch
5) Try again

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
  • Loading branch information...
commit 86f7f589929e201518e896f0d5c2ca1ea774f7a7 1 parent f3d5bd5
@kylemhall kylemhall authored jcamins committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  Koha/Plugins/Base.pm
View
3  Koha/Plugins/Base.pm
@@ -105,12 +105,11 @@ sub get_template {
require C4::Auth;
- my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
+ my ( $template, $loggedinuser, $cookie ) = C4::Auth::get_template_and_user(
{ template_name => $self->mbf_path( $args->{'file'} ),
query => $self->{'cgi'},
type => "intranet",
authnotrequired => 1,
-# flagsrequired => { tools => '*' },
is_plugin => 1,
}
);
Please sign in to comment.
Something went wrong with that request. Please try again.