mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
ff52857b1e
2 changed files with 11 additions and 8 deletions
|
@ -85,7 +85,7 @@ class reparser extends \phpbb\cron\task\base
|
||||||
|
|
||||||
if ($this->resume_data === null)
|
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)
|
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'])
|
if (!isset($this->resume_data['range-max']) || $this->resume_data['range-max'] >= $this->resume_data['range-min'])
|
||||||
|
|
|
@ -54,6 +54,8 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration
|
||||||
/** @var manager $reparser_manager */
|
/** @var manager $reparser_manager */
|
||||||
$reparser_manager = $this->container->get('text_reparser.manager');
|
$reparser_manager = $this->container->get('text_reparser.manager');
|
||||||
|
|
||||||
|
if (!is_array($resume_data))
|
||||||
|
{
|
||||||
/** @var reparser_interface[] $reparsers */
|
/** @var reparser_interface[] $reparsers */
|
||||||
$reparsers = $this->container->get('text_reparser_collection');
|
$reparsers = $this->container->get('text_reparser_collection');
|
||||||
|
|
||||||
|
@ -62,6 +64,7 @@ class text_reparser extends \phpbb\db\migration\container_aware_migration
|
||||||
{
|
{
|
||||||
$reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100);
|
$reparser_manager->update_resume_data($name, 1, $reparser->get_max_id(), 100);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Sometimes a cron job is too much
|
// Sometimes a cron job is too much
|
||||||
$limit = 100;
|
$limit = 100;
|
||||||
|
|
Loading…
Add table
Reference in a new issue