Follow up r100512, adding @since tags and using wfMessage
This commit is contained in:
parent
1d967471bb
commit
028f06bc9c
1 changed files with 4 additions and 2 deletions
|
|
@ -582,10 +582,11 @@ class HTMLForm {
|
|||
|
||||
/**
|
||||
* Set the text for the submit button to a message
|
||||
* @since 1.19
|
||||
* @param $msg String message key
|
||||
*/
|
||||
public function setSubmitTextMsg( $msg ) {
|
||||
return $this->setSubmitText( wfMsg( $msg ) );
|
||||
return $this->setSubmitText( wfMessage( $msg )->escaped() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -629,10 +630,11 @@ class HTMLForm {
|
|||
/**
|
||||
* Prompt the whole form to be wrapped in a <fieldset>, with
|
||||
* this message as its <legend> element.
|
||||
* @since 1.19
|
||||
* @param $msg String message key
|
||||
*/
|
||||
public function setWrapperLegendMsg( $msg ) {
|
||||
return $this->setWrapperLegend( wfMsg( $msg ) );
|
||||
return $this->setWrapperLegend( wfMessage( $msg )->escaped() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue