From 7faf8d357ea2539faeb249475b8bc11976e02efc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 22 Sep 2011 22:10:41 +0000 Subject: [PATCH] * (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. --- includes/HTMLForm.php | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) 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 - * **