1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 00:21:02 +01:00

Merge pull request #5319 from rubencm/ticket/15751

[ticket/15751] Fix warning when update with CLI
This commit is contained in:
Marc Alexander 2018-09-17 21:10:41 +02:00
commit 2769ab701a
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -122,8 +122,11 @@ class check_update extends task_base
// Check for a valid update directory
if (!$this->filesystem->exists($update_files) || !$this->filesystem->is_readable($update_files))
{
$this->iohandler->add_warning_message('UPDATE_FILES_NOT_FOUND');
$this->set_test_passed(false);
if ($this->iohandler->get_input('update_type', 'all') === 'all')
{
$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
// However, we can let the users run migrations if they really want to...