mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14393] Fix updater behaviour
PHPBB3-14393
This commit is contained in:
parent
4db229ff6c
commit
3278ff03e7
3 changed files with 9 additions and 4 deletions
|
@ -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');
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue