From: John Du Hart Date: Sun, 23 Oct 2011 01:10:23 +0000 (+0000) Subject: Follow up r100512, adding @since tags and using wfMessage X-Git-Tag: 1.31.0-rc.0~26959 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=028f06bc9ca2c7efc199847313bc98f973fd08d2;p=lhc%2Fweb%2Fwiklou.git Follow up r100512, adding @since tags and using wfMessage --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 50ff097767..4f5b32604e 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -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
, with * this message as its element. + * @since 1.19 * @param $msg String message key */ public function setWrapperLegendMsg( $msg ) { - return $this->setWrapperLegend( wfMsg( $msg ) ); + return $this->setWrapperLegend( wfMessage( $msg )->escaped() ); } /**