X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLRadioField.php;h=41c2c109acd1f0cdaebdb7faf022cc3bd92d6018;hb=a5230acd936b5b9270037c35b9d2d419f4c8d9a6;hp=c98e1ec07b0873edd2e54fad154201d77818d84f;hpb=1ec7e520d388b7cf23e116ac8f7a5a89ab613f9e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLRadioField.php b/includes/htmlform/fields/HTMLRadioField.php index c98e1ec07b..41c2c109ac 100644 --- a/includes/htmlform/fields/HTMLRadioField.php +++ b/includes/htmlform/fields/HTMLRadioField.php @@ -78,7 +78,7 @@ class HTMLRadioField extends HTMLFormField { $html = ''; $attribs = $this->getAttributes( [ 'disabled', 'tabindex' ] ); - $elementFunc = [ 'Html', $this->mOptionsLabelsNotFromMessage ? 'rawElement' : 'element' ]; + $elementFunc = [ Html::class, $this->mOptionsLabelsNotFromMessage ? 'rawElement' : 'element' ]; # @todo Should this produce an unordered list perhaps? foreach ( $options as $label => $info ) { @@ -92,7 +92,7 @@ class HTMLRadioField extends HTMLFormField { $classes[] = 'mw-ui-radio'; } $radio = Xml::radio( $this->mName, $info, $info === $value, $attribs + [ 'id' => $id ] ); - $radio .= ' ' . call_user_func( $elementFunc, 'label', [ 'for' => $id ], $label ); + $radio .= "\u{00A0}" . call_user_func( $elementFunc, 'label', [ 'for' => $id ], $label ); $html .= ' ' . Html::rawElement( 'div',