[ticket/14393] Fix updater behaviour

PHPBB3-14393
This commit is contained in:
Máté Bartus 2016-03-27 18:25:06 +02:00
parent 4db229ff6c
commit 3278ff03e7
3 changed files with 9 additions and 4 deletions

View file

@ -183,7 +183,7 @@ class update extends task_base
);
}
$this->iohandler->finish_progress('INLINE_UPDATE_SUCCESSFUL');
$this->iohandler->set_progress('INLINE_UPDATE_SUCCESSFUL', $migration_count);
$this->iohandler->add_success_message('INLINE_UPDATE_SUCCESSFUL');

View file

@ -166,6 +166,7 @@ class file_check extends task_base
}
$this->installer_config->set('update_files', $file_update_info);
$this->installer_config->set('update_info', array());
}
/**

View file

@ -140,10 +140,14 @@ class show_file_status extends task_base
}
else
{
$this->file_updater->close();
$conflict_archive_path = $this->installer_config->get('update_file_conflict_archive', null);
// Remove archive
$this->filesystem->remove(
$this->installer_config->get('update_file_conflict_archive', null)
);
if ($conflict_archive_path !== null && $this->filesystem->exists($conflict_archive_path))
{
$this->filesystem->remove($conflict_archive_path);
}
$this->installer_config->set('update_file_conflict_archive', null);
}