/**
* @private
* @param string $str
- * @return string
*/
function text( $str ) {
echo htmlspecialchars( $this->data[$str] );
/**
* @private
* @param string $str
- * @return string
*/
function html( $str ) {
echo $this->data[$str];
/**
* @private
* @param string $str
- * @return string
*/
function msg( $str ) {
echo htmlspecialchars( $this->translator->translate( $str ) );
/**
* @private
* @param string $str
- * @return string
*/
function msgHtml( $str ) {
echo $this->translator->translate( $str );
* An ugly, ugly hack.
* @private
* @param string $str
- * @return string
*/
function msgWiki( $str ) {
global $wgOut;
// add pre/post text
// header used by ConfirmEdit, CondfirmAccount, Persona, WikimediaIncubator, SemanticSignup
// should be above the error message but HTMLForm doesn't support that
- $form->addHeaderText( $fakeTemplate->html( 'header' ) );
+ $form->addHeaderText( $fakeTemplate->get( 'header' ) );
// FIXME the old form used this for error/warning messages which does not play well with
// HTMLForm (maybe it could with a subclass?); for now only display it for signups
}
// header used by MobileFrontend
- $form->addHeaderText( $fakeTemplate->html( 'formheader' ) );
+ $form->addHeaderText( $fakeTemplate->get( 'formheader' ) );
// blank signup footer for site customization
if ( $this->isSignup() && $this->showExtraInformation() ) {