From f05d334a31131f68481903e8c8fdfcb60172afc9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 10 Feb 2015 11:34:10 +0100 Subject: [PATCH] Bug 13690: use Koha::Schema only when it's needed --- Koha/Database.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Database.pm b/Koha/Database.pm index fb72aa8..5587570 100644 --- a/Koha/Database.pm +++ b/Koha/Database.pm @@ -35,7 +35,6 @@ Koha::Database use Modern::Perl; use Carp; use C4::Context; -use Koha::Schema; use base qw(Class::Accessor); use vars qw($database); @@ -48,6 +47,7 @@ __PACKAGE__->mk_accessors(qw( )); # returns it. sub _new_schema { + require Koha::Schema; my $context = C4::Context->new(); # we are letting C4::Context->dbh not set the RaiseError handle attribute -- 2.1.0