From f7acc4993de260b93452a571b9956aee9a8b0614 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 18 Feb 2009 05:17:09 +0000 Subject: [PATCH] Fix accidental regression of 'summary' message to text-only. --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 54f853079e..1f311c19f9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1344,7 +1344,7 @@ class EditPage { $commentsubject = ''; if ( !$wgRequest->getBool( 'nosummary' ) ) { $commentsubject = - Xml::label( $subject, 'wpSummary' ); + Xml::element( 'label', array( 'for' => 'wpSummary' ), $subject ); $commentsubject = Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $commentsubject ); $commentsubject .= ' '; @@ -1365,7 +1365,7 @@ class EditPage { } else { $commentsubject = ''; - $editsummary = Xml::label( $summary, 'wpSummary' ); + $editsummary = Xml::element( 'label', array( 'for' => 'wpSummary' ), $summary ); $editsummary = Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $editsummary ); -- 2.20.1