Lines 21-26
use Modern::Perl;
Link Here
|
21 |
|
21 |
|
22 |
use vars qw($AUTOLOAD $context); |
22 |
use vars qw($AUTOLOAD $context); |
23 |
BEGIN { |
23 |
BEGIN { |
|
|
24 |
# Calling get_enabled_plugins here esnures that all plugin |
25 |
# modules are loaded before use and will not trigger |
26 |
# a database connection reset |
27 |
Koha::Plugins->get_enabled_plugins(); |
28 |
|
24 |
if ( $ENV{'HTTP_USER_AGENT'} ) { # Only hit when plack is not enabled |
29 |
if ( $ENV{'HTTP_USER_AGENT'} ) { # Only hit when plack is not enabled |
25 |
|
30 |
|
26 |
# Redefine multi_param if cgi version is < 4.08 |
31 |
# Redefine multi_param if cgi version is < 4.08 |