From: Alexandre Emsenhuber Date: Wed, 10 Apr 2013 10:04:48 +0000 (+0200) Subject: Use HTMLForm::setWrapperLegendMsg() in FormSpecialPage::getForm() X-Git-Tag: 1.31.0-rc.0~20038^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=476db5c387fc49cdacdd2986ed451e469aaff129;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() );