From 5e60c1af357696afbb17cab23c7302860c4e7888 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 24 Aug 2011 19:48:59 +0000 Subject: [PATCH] Revert r95408, breaks preferences --- includes/HTMLForm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 2579f929c2..cfaa9c494e 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -695,8 +695,9 @@ class HTMLForm { : $value->getDefault(); $tableHtml .= $value->getTableRow( $v ); - if ( $value->getLabel() != ' ' ) + if ( $value->getLabel() != ' ' ) { $hasLeftColumn = true; + } } elseif ( is_array( $value ) ) { $section = $this->displaySection( $value, $key ); $legend = $this->getLegend( $key ); @@ -708,7 +709,7 @@ class HTMLForm { } $attributes = array(); if ( $displayTitle ) { - $attributes["title"] = Sanitizer::escapeId( $key ); + $attributes["id"] = 'prefsection-' . Sanitizer::escapeId( $key, 'noninitial' ); } $subsectionHtml .= Xml::fieldset( $legend, $section, $attributes ) . "\n"; } -- 2.20.1