1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/14312] Allow updating without having the update directory

PHPBB3-14312
This commit is contained in:
Mate Bartus
2016-02-04 21:35:45 +01:00
parent 2f6f9a05eb
commit ad7b3ed178
3 changed files with 39 additions and 15 deletions

View File

@@ -57,22 +57,35 @@ class obtain_update_settings extends task_base
}
else
{
if ($this->installer_config->get('disable_filesystem_update', false))
{
$options[] = array(
'value' => 'db_only',
'label' => 'UPDATE_TYPE_DB_ONLY',
'selected' => true,
);
}
else
{
$options = array(
array(
'value' => 'all',
'label' => 'UPDATE_TYPE_ALL',
'selected' => true,
),
array(
'value' => 'db_only',
'label' => 'UPDATE_TYPE_DB_ONLY',
'selected' => false,
),
);
}
$this->iohandler->add_user_form_group('UPDATE_TYPE', array(
'update_type' => array(
'label' => 'UPDATE_TYPE',
'type' => 'radio',
'options' => array(
array(
'value' => 'all',
'label' => 'UPDATE_TYPE_ALL',
'selected' => true,
),
array(
'value' => 'db_only',
'label' => 'UPDATE_TYPE_DB_ONLY',
'selected' => false,
),
),
'options' => $options,
),
'submit_update' => array(
'label' => 'SUBMIT',