- let makePathfield return usable values for the formfield (dynamically changing between select, text and hidden, depending on settings)
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -26,9 +26,9 @@ return array(
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null),
|
||||
'type' => ($settings['panel']['pathedit'] != 'Dropdown' ? 'text' : 'select'),
|
||||
'select_var' => $pathSelect
|
||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value']
|
||||
),
|
||||
'options_indexes' => array(
|
||||
'label' => $lng['extras']['directory_browsing'],
|
||||
|
||||
@@ -26,9 +26,9 @@ return array(
|
||||
'fields' => array(
|
||||
'path' => array(
|
||||
'label' => $lng['panel']['path'],
|
||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null),
|
||||
'type' => ($settings['panel']['pathedit'] != 'Dropdown' ? 'text' : 'select'),
|
||||
'select_var' => $pathSelect
|
||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||
'type' => $pathSelect['type'],
|
||||
'select_var' => $pathSelect['value']
|
||||
),
|
||||
'username' => array(
|
||||
'label' => $lng['login']['username'],
|
||||
|
||||
Reference in New Issue
Block a user