X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormField.php;h=aab881129bafc63d78ba32fedb70e0bbafa4dc99;hb=238494825619ad1a5f81f48e76c8e0f5a674b22e;hp=e642c2cdd013aeb076fa10962d2816330d782d69;hpb=91be4ee4645e28866910f654c6eda730a692fc90;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index e642c2cdd0..aab881129b 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -631,7 +631,7 @@ abstract class HTMLFormField { // the element could specify, that the label doesn't need to be added $label = $this->getLabel(); - if ( $label ) { + if ( $label && $label !== ' ' ) { $config['label'] = new OOUI\HtmlSnippet( $label ); } @@ -673,7 +673,7 @@ abstract class HTMLFormField { } /** - * Whether the field should be automatically infused. Note that all OOjs UI HTMLForm fields are + * Whether the field should be automatically infused. Note that all OOUI HTMLForm fields are * infusable (you can call OO.ui.infuse() on them), but not all are infused by default, since * there is no benefit in doing it e.g. for buttons and it's a small performance hit on page load. * @@ -686,7 +686,7 @@ abstract class HTMLFormField { /** * Get the list of extra ResourceLoader modules which must be loaded client-side before it's - * possible to infuse this field's OOjs UI widget. + * possible to infuse this field's OOUI widget. * * @return string[] */