[ticket/13986] Fixed resume data to carry through multiple runs

Options restored from a previous execution should carry to the
next resumed execution

PHPBB3-13986
This commit is contained in:
JoshyPHP 2015-07-17 14:00:47 +02:00
parent 903f100c51
commit 9274bc4e32

View file

@ -296,9 +296,9 @@ class reparse extends \phpbb\console\command\command
protected function update_resume_data($name, $current) protected function update_resume_data($name, $current)
{ {
$this->resume_data[$name] = array( $this->resume_data[$name] = array(
'range-min' => $this->input->getOption('range-min'), 'range-min' => $this->get_option($name, 'range-min'),
'range-max' => $current, 'range-max' => $current,
'range-size' => $this->input->getOption('range-size'), 'range-size' => $this->get_option($name, 'range-size'),
); );
$this->save_resume_data(); $this->save_resume_data();
} }