http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100523

Revision: 100523
Author:   johnduhart
Date:     2011-10-23 01:10:23 +0000 (Sun, 23 Oct 2011)
Log Message:
-----------
Follow up r100512, adding @since tags and using wfMessage

Modified Paths:
--------------
    trunk/phase3/includes/HTMLForm.php

Modified: trunk/phase3/includes/HTMLForm.php
===================================================================
--- trunk/phase3/includes/HTMLForm.php  2011-10-22 22:41:36 UTC (rev 100522)
+++ trunk/phase3/includes/HTMLForm.php  2011-10-23 01:10:23 UTC (rev 100523)
@@ -582,10 +582,11 @@
 
        /**
         * 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 @@
        /**
         * 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() );
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to