[ticket/15751] Fix warning when update with CLI

PHPBB3-15751
This commit is contained in:
Rubén Calvo 2018-08-09 21:25:59 +02:00
parent 911c46cc61
commit c912e6feaa

View file

@ -122,8 +122,11 @@ class check_update extends task_base
// Check for a valid update directory // Check for a valid update directory
if (!$this->filesystem->exists($update_files) || !$this->filesystem->is_readable($update_files)) if (!$this->filesystem->exists($update_files) || !$this->filesystem->is_readable($update_files))
{ {
$this->iohandler->add_warning_message('UPDATE_FILES_NOT_FOUND'); if ($this->iohandler->get_input('update_type', 'all') === 'all')
$this->set_test_passed(false); {
$this->iohandler->add_warning_message('UPDATE_FILES_NOT_FOUND');
$this->set_test_passed(false);
}
// If there are no update files, we can't check the version etc // If there are no update files, we can't check the version etc
// However, we can let the users run migrations if they really want to... // However, we can let the users run migrations if they really want to...