X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLMultiSelectField.php;h=e8a7e992caf81ca1110b633f4f0688b017b7394c;hb=9f0757a0a325ed755c1057a141cc9ddcac1b007b;hp=238b2b46c370e9d8b60ba2a6f071f1ae16779dd1;hpb=c9be16a35596ff369bb5f700c20ae8dc2f7def48;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLMultiSelectField.php b/includes/htmlform/fields/HTMLMultiSelectField.php index 238b2b46c3..e8a7e992ca 100644 --- a/includes/htmlform/fields/HTMLMultiSelectField.php +++ b/includes/htmlform/fields/HTMLMultiSelectField.php @@ -102,7 +102,7 @@ class HTMLMultiSelectField extends HTMLFormField implements HTMLNestedFilterable if ( $this->mParent instanceof OOUIHTMLForm ) { throw new MWException( 'HTMLMultiSelectField#getOneCheckbox() is not supported' ); } else { - $elementFunc = [ 'Html', $this->mOptionsLabelsNotFromMessage ? 'rawElement' : 'element' ]; + $elementFunc = [ Html::class, $this->mOptionsLabelsNotFromMessage ? 'rawElement' : 'element' ]; $checkbox = Xml::check( "{$this->mName}[]", $checked, $attribs ) . ' ' . @@ -192,7 +192,7 @@ class HTMLMultiSelectField extends HTMLFormField implements HTMLNestedFilterable if ( $sectionLabel ) { $out[] = new OOUI\FieldsetLayout( [ 'items' => [ $widget ], - 'label' => $sectionLabel, + 'label' => new OOUI\HtmlSnippet( $sectionLabel ), ] ); } else { $out[] = $widget;