projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d35d0
)
Für jeden ausgeführten Job globale Variablen initialisieren
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 13 Jan 2011 12:37:27 +0000
(13:37 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 13 Jan 2011 12:37:27 +0000
(13:37 +0100)
scripts/task_server.pl
patch
|
blob
|
history
diff --git
a/scripts/task_server.pl
b/scripts/task_server.pl
index
2460e1b
..
bbe3353
100755
(executable)
--- 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;
};