From: Bartosz DziewoƄski Date: Thu, 30 Nov 2017 16:38:30 +0000 (+0100) Subject: HTMLMultiSelectField: Allow formatting in section headings in OOUI mode X-Git-Tag: 1.31.0-rc.0~1347 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/User:Test/%27http:/jquery.khurshid.com/ifixpng.php/%40%20%27info_etape_suivante_2%27%20=%3E%20%27You%20can%20move%20on%20to%20the%20next%20step.%27%2C%20%27info_exceptions_proxy%27%20=%3E%20%27Exceptions%20for%20the%20proxy%27%2C%20%27info_exportation_base%27%20=%3E%20%27export%20database%20to%20%40archive%40%27%2C-%27info_facilite_suivi_activite%27%20=%3E%20%27To%20simplify%20monitoring%20of%20the%20site/%27s%20editorial;-%20%20activities%2C%20SPIP%20can%20send%20rmail%20notifications%2C%20e.g.%20to%20an%20editors/%27%20mailing%20list%2C%20%27info_facilite_suivi_activite%27%20=%3E%20%27To%20simplify%20monitoring%20of%20the%20site%C3%A2%C2%80%C2%99s%20editorial;%20%20%20activities%2C%20SPIP%20can%20send%20rmail%20notifications%2C%20e.g.%20to%20an%20editors%C3%A2%C2%80%C2%99%20mailing%20list%2C%20%20%20of%20publication%20requests%20and%20article%20validations.%27%2C%20%27info_fichiers_authent%27%20=%3E%20%27Authentication%20file?a=commitdiff_plain;h=f75232305410689a54c86fe327a40586eb459239;p=lhc%2Fweb%2Fwiklou.git HTMLMultiSelectField: Allow formatting in section headings in OOUI mode Follow-up to 5a113417e5af9d0d0dbed63429649a9780784d45. It is allowed in non-OOUI modes. Bug: T181698 Change-Id: Ib2ebcd1a92f1b02a528787fe3fd1f5452b9808c4 --- diff --git a/includes/htmlform/fields/HTMLMultiSelectField.php b/includes/htmlform/fields/HTMLMultiSelectField.php index 238b2b46c3..09bacadb69 100644 --- a/includes/htmlform/fields/HTMLMultiSelectField.php +++ b/includes/htmlform/fields/HTMLMultiSelectField.php @@ -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;