mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
Merge pull request #4974 from Elsensee/ticket/15379
[ticket/15379] Fix assignments in reparser cron job
This commit is contained in:
commit
fc3d3a83db
@ -85,7 +85,7 @@ class reparser extends \phpbb\cron\task\base
|
||||
|
||||
if ($this->resume_data === null)
|
||||
{
|
||||
$this->reparser_manager->get_resume_data($this->reparser_name);
|
||||
$this->resume_data = $this->reparser_manager->get_resume_data($this->reparser_name);
|
||||
}
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ class reparser extends \phpbb\cron\task\base
|
||||
{
|
||||
if ($this->resume_data === null)
|
||||
{
|
||||
$this->reparser_manager->get_resume_data($this->reparser_name);
|
||||
$this->resume_data = $this->reparser_manager->get_resume_data($this->reparser_name);
|
||||
}
|
||||
|
||||
if (!isset($this->resume_data['range-max']) || $this->resume_data['range-max'] >= $this->resume_data['range-min'])
|
||||
|
@ -54,13 +54,16 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration
|
||||
/** @var manager $reparser_manager */
|
||||
$reparser_manager = $this->container->get('text_reparser.manager');
|
||||
|
||||
/** @var reparser_interface[] $reparsers */
|
||||
$reparsers = $this->container->get('text_reparser_collection');
|
||||
|
||||
// Initialize all reparsers
|
||||
foreach ($reparsers as $name => $reparser)
|
||||
if (!is_array($resume_data))
|
||||
{
|
||||
$reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100);
|
||||
/** @var reparser_interface[] $reparsers */
|
||||
$reparsers = $this->container->get('text_reparser_collection');
|
||||
|
||||
// Initialize all reparsers
|
||||
foreach ($reparsers as $name => $reparser)
|
||||
{
|
||||
$reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100);
|
||||
}
|
||||
}
|
||||
|
||||
// Sometimes a cron job is too much
|
||||
|
Loading…
x
Reference in New Issue
Block a user