mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 07:21:30 +02:00
[ticket/14499] Add command to update the board from CLI
PHPBB3-14499
This commit is contained in:
@@ -53,6 +53,14 @@ class obtain_update_settings extends task_base
|
||||
if ($this->iohandler->get_input('submit_update', false))
|
||||
{
|
||||
$update_files = $this->iohandler->get_input('update_type', 'all') === 'all';
|
||||
|
||||
if ($this->installer_config->get('disable_filesystem_update', false) && $update_files)
|
||||
{
|
||||
$this->iohandler->add_error_message('UPDATE_FILES_NOT_FOUND');
|
||||
|
||||
throw new user_interaction_required_exception();
|
||||
}
|
||||
|
||||
$this->installer_config->set('do_update_files', $update_files);
|
||||
}
|
||||
else
|
||||
|
@@ -122,7 +122,7 @@ 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_error_message('UPDATE_FILES_NOT_FOUND');
|
||||
$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
|
||||
|
Reference in New Issue
Block a user