From f6669610e0738fa19fd8345132ff43bf8bb8b06a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 13 Jan 2011 13:37:27 +0100 Subject: [PATCH] =?utf8?q?F=C3=BCr=20jeden=20ausgef=C3=BChrten=20Job=20glo?= =?utf8?q?bale=20Variablen=20initialisieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/task_server.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 2460e1b56..bbe3353ae 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -118,7 +118,14 @@ sub gd_run { $::lxdebug->message(0, " Found: " . join(' ', map { $_->package_name } @{ $jobs })) if $config{task_server}->{debug} && @{ $jobs }; - $_->run for @{ $jobs }; + foreach my $job (@{ $jobs }) { + # Provide fresh global variables in case legacy code modifies + # them somehow. + $::locale = Locale->new($::language); + $::form = Form->new; + + $job->run; + } 1; }; -- 2.20.1