From: Brion Vibber Date: Thu, 22 Sep 2011 22:10:41 +0000 (+0000) Subject: * (bug 31089) Fix regression in Special:Block reasons list (MediaWiki:Ipbreason-dropd... X-Git-Tag: 1.31.0-rc.0~27467 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=7faf8d357ea2539faeb249475b8bc11976e02efc;p=lhc%2Fweb%2Fwiklou.git * (bug 31089) Fix regression in Special:Block reasons list (MediaWiki:Ipbreason-dropdown parsing) Followup to r83298: makes HTMLSelectAndOtherField backwards-compatible with Xml::listDropDown as it was apparently intended to be. Also fixed double-escaping in the options for HTMLSelectAndOtherField. Followup to r83795: fixes regression in Special:Block by fixing HTMLSelectAndOtherField which got used in place of Xml::listDropDown, but wasn't compatible. Note that this removes the clever thing that lets you have separate values and texts in your dropdown; since Xml::listDropDown had no such feature and actual usage includes texts containing links and other stuch where the pipe character is a legit part of the content. --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index c8279bcf03..78a59f4863 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1572,8 +1572,7 @@ class HTMLMultiSelectField extends HTMLFormField { /** * Double field with a dropdown list constructed from a system message in the format * * Optgroup header - * **