View | Details | Raw Unified | Return to bug 38384
Collapse All | Expand All

(-)a/C4/Context.pm (-1 / +6 lines)
Lines 22-28 use Modern::Perl; Link Here
22
use vars qw($AUTOLOAD $context);
22
use vars qw($AUTOLOAD $context);
23
23
24
BEGIN {
24
BEGIN {
25
    if ( $ENV{'HTTP_USER_AGENT'} ) {    # Only hit when plack is not enabled
25
    # Calling get_enabled_plugins here esnures that all plugin
26
    # modules are loaded before use and will not trigger
27
    # a database connection reset
28
    Koha::Plugins->get_enabled_plugins();
29
30
    if ( $ENV{'HTTP_USER_AGENT'} ) { # Only hit when plack is not enabled
26
31
27
        # Redefine multi_param if cgi version is < 4.08
32
        # Redefine multi_param if cgi version is < 4.08
28
        # Remove the "CGI::param called in list context" warning in this case
33
        # Remove the "CGI::param called in list context" warning in this case
(-)a/Koha/BackgroundJob.pm (-7 lines)
Lines 189-200 sub process { Link Here
189
189
190
    return {} if ref($self) ne 'Koha::BackgroundJob';
190
    return {} if ref($self) ne 'Koha::BackgroundJob';
191
191
192
    # Our background jobs are called in forked processes
193
    # to ensure we have all plugin hooks and data we call
194
    # get_enabled_plugins at the star of processing
195
    # to populate the cache
196
    Koha::Plugins->get_enabled_plugins();
197
198
    my $derived_class = $self->_derived_class;
192
    my $derived_class = $self->_derived_class;
199
193
200
    $args ||= {};
194
    $args ||= {};
201
- 

Return to bug 38384