aboutsummaryrefslogtreecommitdiffstats
path: root/includes/HTMLForm.php
diff options
context:
space:
mode:
authorJohn Du Hart <johnduhart@users.mediawiki.org>2011-10-23 01:10:23 +0000
committerJohn Du Hart <johnduhart@users.mediawiki.org>2011-10-23 01:10:23 +0000
commit028f06bc9ca2c7efc199847313bc98f973fd08d2 (patch)
treed3cfea3ef5cb0a2c12745a2754eeb6c6e95c6255 /includes/HTMLForm.php
parent1d967471bbd2b841dc07b467e0100ecb8185dfa5 (diff)
downloadmediawikicore-028f06bc9ca2c7efc199847313bc98f973fd08d2.tar.gz
mediawikicore-028f06bc9ca2c7efc199847313bc98f973fd08d2.zip
Follow up r100512, adding @since tags and using wfMessage
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/100523
Diffstat (limited to 'includes/HTMLForm.php')
-rw-r--r--includes/HTMLForm.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php
index 50ff0977675f..4f5b32604e89 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 <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() );
}
/**