From 476db5c387fc49cdacdd2986ed451e469aaff129 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 10 Apr 2013 12:04:48 +0200 Subject: [PATCH] Use HTMLForm::setWrapperLegendMsg() in FormSpecialPage::getForm() There is no need to call $this->msg() directly for the fieldset legend as there is already a method in HTMLForm to do it. Change-Id: I771520ea230301b51cece685f47e6a606ad860be --- includes/SpecialPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index ca6626c51e..d09be875de 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -948,7 +948,7 @@ abstract class FormSpecialPage extends SpecialPage { $form = new HTMLForm( $this->fields, $this->getContext(), $this->getMessagePrefix() ); $form->setSubmitCallback( array( $this, 'onSubmit' ) ); - $form->setWrapperLegend( $this->msg( $this->getMessagePrefix() . '-legend' ) ); + $form->setWrapperLegendMsg( $this->getMessagePrefix() . '-legend' ); $form->addHeaderText( $this->msg( $this->getMessagePrefix() . '-text' )->parseAsBlock() ); -- 2.20.1