File: phpbb/console/command/reparser/reparse.php
Unmodified
Added
Modified
Removed
Line 91 | Line 91 |
---|
null, InputOption::VALUE_NONE, $this->user->lang('CLI_DESCRIPTION_REPARSER_REPARSE_OPT_DRY_RUN')
|
null, InputOption::VALUE_NONE, $this->user->lang('CLI_DESCRIPTION_REPARSER_REPARSE_OPT_DRY_RUN')
|
| ) ->addOption( 'force-bbcode-reparsing', null, InputOption::VALUE_NONE, $this->user->lang('CLI_DESCRIPTION_REPARSER_REPARSE_OPT_FORCE_BBCODE')
|
) ->addOption( 'resume',
| ) ->addOption( 'resume',
|
Line 222 | Line 228 |
---|
// Start from $max and decrement $current by $size until we reach $min $current = $max;
|
// Start from $max and decrement $current by $size until we reach $min $current = $max;
|
| $force_bbcode_reparsing = (bool) $this->get_option('force-bbcode-reparsing');
|
while ($current >= $min) { $start = max($min, $current + 1 - $size); $end = max($min, $current);
$progress->setMessage($this->user->lang('CLI_REPARSER_REPARSE_REPARSING', $reparser->get_name(), $start, $end));
|
while ($current >= $min) { $start = max($min, $current + 1 - $size); $end = max($min, $current);
$progress->setMessage($this->user->lang('CLI_REPARSER_REPARSE_REPARSING', $reparser->get_name(), $start, $end));
|
$reparser->reparse_range($start, $end);
| $reparser->reparse_range($start, $end, $force_bbcode_reparsing);
|
$current = $start - 1; $progress->setProgress($max + 1 - $start);
| $current = $start - 1; $progress->setProgress($max + 1 - $start);
|