mirror of
https://github.com/friendica/friendica
synced 2025-04-22 21:10:10 +00:00
Remove yesno option from Storage backend
This commit is contained in:
parent
dad6b43689
commit
a7a38da62d
3 changed files with 8 additions and 3 deletions
|
@ -556,6 +556,13 @@ class Site extends BaseAdmin
|
|||
if (!is_null($current_storage_backend) && $current_storage_backend != '') {
|
||||
foreach ($current_storage_backend->getOptions() as $name => $info) {
|
||||
$type = $info[0];
|
||||
// Backward compatibilty with yesno field description
|
||||
if ($type == 'yesno') {
|
||||
$type = 'checkbox';
|
||||
// Remove translated labels Yes No from field info
|
||||
unset($info[4]);
|
||||
}
|
||||
|
||||
$info[0] = $storage_form_prefix . '_' . $name;
|
||||
$info['type'] = $type;
|
||||
$info['field'] = 'field_' . $type . '.tpl';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue