mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
Disable setting fields in case we use environment variables
This commit is contained in:
parent
f61fd93db0
commit
76f3b07033
11 changed files with 65 additions and 19 deletions
|
@ -76,7 +76,7 @@ class Storage extends BaseAdmin
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($_POST['submit_save_set'])) {
|
||||
if (!empty($_POST['submit_save_set']) && !DI::config()->isSetDisabled('storage', 'name') ) {
|
||||
try {
|
||||
$newstorage = DI::storageManager()->getWritableStorageByName($storagebackend);
|
||||
|
||||
|
@ -129,6 +129,7 @@ class Storage extends BaseAdmin
|
|||
'prefix' => $storage_form_prefix,
|
||||
'form' => $storage_form,
|
||||
'active' => $current_storage_backend instanceof ICanWriteToStorage && $name === $current_storage_backend::getName(),
|
||||
'set_disabled' => DI::config()->isSetDisabled('storage', 'name'),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue