From 7c60c2423f6fd27a78cf89ca62821ea1e41e85f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 20 Jun 2013 19:01:13 +0200 Subject: [PATCH] kein use SL::DB::Object in SL::DB::Object --- SL/DB/BackgroundJob.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SL/DB/BackgroundJob.pm b/SL/DB/BackgroundJob.pm index c83868502..f5c4b21f6 100644 --- a/SL/DB/BackgroundJob.pm +++ b/SL/DB/BackgroundJob.pm @@ -5,10 +5,8 @@ use strict; use DateTime::Event::Cron; use English qw(-no_match_vars); -require SL::DB::MetaSetup::BackgroundJob; -require SL::DB::Manager::BackgroundJob; - -require SL::DB::BackgroundJobHistory; +use SL::DB::MetaSetup::BackgroundJob; +use SL::DB::Manager::BackgroundJob; use SL::System::Process; @@ -36,6 +34,8 @@ sub run { my $run_at = DateTime->now_local; my $history; + require SL::DB::BackgroundJobHistory; + my $ok = eval { eval "require $package" or die $@; my $result = $package->new->run($self); -- 2.20.1