Jaap Marcus 4 лет назад
Родитель
Сommit
e5e66efa70
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      web/templates/pages/setup_webapp.html

+ 5 - 1
web/templates/pages/setup_webapp.html

@@ -42,7 +42,11 @@
 						$f_name = $WebappInstaller->formNs() . '_' . $form_name;
 						$f_type = $form_control;
 						$f_value = '';
-						$f_label = ucwords(str_replace(['.','_'], ' ', $form_name));
+						if(isset($form_control['label'])){
+							$f_label = htmlentities($form_control['label']);
+						}else{
+							$f_label = ucwords(str_replace(['.','_'], ' ', $form_name));
+						}
 						$f_placeholder = '';
 						if (is_array($form_control)) {
 								$f_type = (!empty($form_control['type']))?$form_control['type']:'text';