diff options
| author | Mate Bartus <mate.bartus@gmail.com> | 2016-02-04 21:35:45 +0100 |
|---|---|---|
| committer | Mate Bartus <mate.bartus@gmail.com> | 2016-02-04 22:01:38 +0100 |
| commit | ad7b3ed17865b4ac91df24812fce4a9192f44fa1 (patch) | |
| tree | beaca601641965e7569f9db06d26d59be3686e9a /phpBB/phpbb/install/module/obtain_data/task | |
| parent | 2f6f9a05eb1ae25a29fcb90bb301ce507298a474 (diff) | |
| download | forums-ad7b3ed17865b4ac91df24812fce4a9192f44fa1.tar forums-ad7b3ed17865b4ac91df24812fce4a9192f44fa1.tar.gz forums-ad7b3ed17865b4ac91df24812fce4a9192f44fa1.tar.bz2 forums-ad7b3ed17865b4ac91df24812fce4a9192f44fa1.tar.xz forums-ad7b3ed17865b4ac91df24812fce4a9192f44fa1.zip | |
[ticket/14312] Allow updating without having the update directory
PHPBB3-14312
Diffstat (limited to 'phpBB/phpbb/install/module/obtain_data/task')
| -rw-r--r-- | phpBB/phpbb/install/module/obtain_data/task/obtain_update_settings.php | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/phpBB/phpbb/install/module/obtain_data/task/obtain_update_settings.php b/phpBB/phpbb/install/module/obtain_data/task/obtain_update_settings.php index 6a98721e77..be6404dcd8 100644 --- a/phpBB/phpbb/install/module/obtain_data/task/obtain_update_settings.php +++ b/phpBB/phpbb/install/module/obtain_data/task/obtain_update_settings.php @@ -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', |
