Revision f6669610
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
scripts/task_server.pl | ||
---|---|---|
118 | 118 |
|
119 | 119 |
$::lxdebug->message(0, " Found: " . join(' ', map { $_->package_name } @{ $jobs })) if $config{task_server}->{debug} && @{ $jobs }; |
120 | 120 |
|
121 |
$_->run for @{ $jobs }; |
|
121 |
foreach my $job (@{ $jobs }) { |
|
122 |
# Provide fresh global variables in case legacy code modifies |
|
123 |
# them somehow. |
|
124 |
$::locale = Locale->new($::language); |
|
125 |
$::form = Form->new; |
|
126 |
|
|
127 |
$job->run; |
|
128 |
} |
|
122 | 129 |
|
123 | 130 |
1; |
124 | 131 |
}; |
Auch abrufbar als: Unified diff
Für jeden ausgeführten Job globale Variablen initialisieren