X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLRadioField.php;h=f3bcc0e1eb4712a97e88bca3748870bd55b43208;hp=77ea7cd2115d121c6a84f51b96ccbaad8556bd0a;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hpb=a8a5f03b3b6653136c4dc5925d6bb2b806010725 diff --git a/includes/htmlform/fields/HTMLRadioField.php b/includes/htmlform/fields/HTMLRadioField.php index 77ea7cd211..f3bcc0e1eb 100644 --- a/includes/htmlform/fields/HTMLRadioField.php +++ b/includes/htmlform/fields/HTMLRadioField.php @@ -72,17 +72,13 @@ class HTMLRadioField extends HTMLFormField { ) ); } - protected function shouldInfuseOOUI() { - return true; - } - public function formatOptions( $options, $value ) { global $wgUseMediaWikiUIEverywhere; $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 ) {