Bugzilla – Attachment 17158 Details for
Bug 9971
Plugins system is broken!
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9971 - Plugins system is broken!
Bug-9971---Plugins-system-is-broken.patch (text/plain), 1.52 KB, created by
Jonathan Druart
on 2013-04-03 08:52:56 UTC
(
hide
)
Description:
Bug 9971 - Plugins system is broken!
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-04-03 08:52:56 UTC
Size:
1.52 KB
patch
obsolete
>From 0bf2d9c6a21896e82ba52c8eea801b459448120a Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 2 Apr 2013 09:02:55 -0400 >Subject: [PATCH] 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> >--- > Koha/Plugins/Base.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/Koha/Plugins/Base.pm b/Koha/Plugins/Base.pm >index 3a8dc63..4e02ae6 100644 >--- a/Koha/Plugins/Base.pm >+++ b/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, > } > ); >-- >1.7.10.4
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 9971
:
17125
|
17138
| 17158